Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- class Foldable c => Collection c where
- null :: Collection c => c v -> Bool
- empty :: Collection c => c v
- singleton :: Collection c => v -> c v
- size :: Collection c => c v -> Int
Documentation
class Foldable c => Collection c where Source #
Lower bound for multimap values.
An alternative could have been to use Applicative
but that would have
precluded common implementations (e.g. Set
).
null :: Collection c => c v -> Bool Source #
empty :: Collection c => c v Source #
The empty collection.
singleton :: Collection c => v -> c v Source #
A singleton collection.
size :: Collection c => c v -> Int Source #