List in JS provides List like List of Haskell. List in JS implements Fantasy Land Specification. List is a Setoid, a Semigroup, a Monoid, a Functor, an Applicative Functor, Foldable, Traversable, a Chain and a Monad.
Methods of List behave as List of Haskell.
Now List in JS supports methods below.
- !!
- \\
- all
- and
- any
- ap
- break
- chain
- concat
- concatMap
- cycle
- delete
- deleteBy
- drop
- dropWhile
- dropWhileEnd
- elem
- empty
- equals
- filter
- foldl
- foldl1
- foldr
- foldr1
- head
- init
- inits
- insert
- insertBy
- intercalate
- intersect
- intersperse
- isnull
- isInfixOf
- isPrefixOf
- isSuffixOf
- last
- lines
- map
- mapAccumL
- mapAccumR
- maximum
- minimum
- nub
- nubBy
- null
- of
- or
- permutations
- product
- reduce
- reverse
- scanl
- scanl1
- scanr
- scanr1
- sequence
- sort
- sortBy
- span
- splitAt
- subsequences
- sum
- tail
- tails
- take
- takeWhile
- toArray
- transpose
- traverse
- union
- unionBy
- unlines
- unwords
- unzip
- unzip3
- unzip4
- unzip5
- unzip6
- unzip7
- unzipHelper
- words
List in JS also has static methods.
- pure
- concat
- iterate
- repeat
- replicate
- of
- zip
- zip3
- zip4
- zip5
- zip6
- zip7
- zipWith
- zipWith3
- zipWith4
- zipWith5
- zipWith6
- zipWith7