1.4.0
Changes
- Aliases are available by default
_.find
is no longer an alias to_.detect
- Provided a new implementation of
_.unique
, removed argument_.isSorted
_.isNil
now returns true if arg is nil, an empty string or empty table and false otherwise._.size
now returns 0 for empty args instead ofnil
_.unique
no longer acceptsiter
argument to transform original array values._.cycle
argumentn
now defaults to 1._.groupBy
no longer handlesiter
as a string
Renamed
- Renamed alias
_.uId
to_.uid
- Renamed
_.add
to_.addTop
- Renamed
_.uniq
as alias to_.unique
- Renamed
_.symmetric_difference
to_.symmetricDifference
Removed
- Removed
_.paired
Improvements & bugfixes
_.reduce
now supports an array of booleans_.pick
now picks false values_.concat
argsi
andj
defaults explicitely to 1 and array length (for compatibility with LuaJIT)_.pop
now takes an optional extra-arg n, to be the number of values to be popped_.unshift
now takes an optional extra-arg n, to be the number of values to be retrieved- Moved explicitely
_.toArray
to array functions _.functions
accepts an extra-arg to prevent from looking-up for methods in metatables.
New functions (and aliases)
- Added
_.find
- Added
_.pipe
- Added
_.complement
- Added
_.juxtapose
and alias_.juxt
- Added
_.isunique
and alias_.isuniq
- Added
_.rep
- Added
_.interleave
- Added
_.interpose
- Added
_.partition
and alias_.part
- Added
_.permutation
and alias_.perm
- Added
_.compare
as alias to_.isEqual
- Added
_.isIterable
- Added
_.toBoolean
- Added
_.pull
and alias_.remove
- Added
_.at
New aliases
- Added
_.xor
as alias to_.symmetricDifference