2
4

1 回答 1

6

The constructor of Of is called (:>):

-- | A left-strict pair; the base functor for streams of individual elements.
data Of a b = !a :> b
    deriving (Data, Eq, Foldable, Ord,
              Read, Show, Traversable, Typeable, Generic, Generic1)
infixr 5 :>

so you should be able to do something like

n :> _ <- length bs
于 2019-05-14T07:19:28.470 回答