🐆 An immutable list with unmatched performance and a comprehensive functional API.
head
as an alias for first
. This was already mentioned in the documentation but not implemented. Thanks to @shomodj for finding and reporting this bug.toJSON
method to List
. When used in combination with the JSON.stringify
function a list will now serialize into a JSON array.lastIndexOf
, takeLastWhile
, findLast
, splitEvery
, splitWhen
, intersperse
, dropRepeats
, dropRepeatsWith
, scan
.sort
, sortBy
, and sortWith
.The list/ramda
export is now deprecated. The new list/curried
should be used instead. The new list/curried
exports functions that are curried with an internal curry function. This makes it dependency-free compared to the old one that relied on Ramda.