Skip to content

pandanoir/List-in-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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

Methods of List behave as List of Haskell.

instance methods

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

static methods

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published