Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype AppendList a = AppendList [a]
- nil :: AppendList a
- append :: AppendList a -> a -> AppendList a
- unwrapAppendList :: AppendList a -> [a]
Documentation
newtype AppendList a #
A list, appending is O(1) instead of prepending.
AppendList [a] |
Instances
Semigroup (AppendList a) # | |
Defined in Data.AppendList (<>) :: AppendList a -> AppendList a -> AppendList a # sconcat :: NonEmpty (AppendList a) -> AppendList a # stimes :: Integral b => b -> AppendList a -> AppendList a # | |
Monoid (AppendList a) # | |
Defined in Data.AppendList mempty :: AppendList a # mappend :: AppendList a -> AppendList a -> AppendList a # mconcat :: [AppendList a] -> AppendList a # |
nil :: AppendList a #
Empty AppendList.
append :: AppendList a -> a -> AppendList a #
Append to an AppendList.
unwrapAppendList :: AppendList a -> [a] #
Get a list from an AppendList.