- Added
_.array
- Added
_.clear
- Added
_.time
- Added
_.before
- Added
_.toObj
- Added
_.noop
- Added
_.partialRight
- Added
_.flip
- Added
_.overArgs
- Added
_.over
- Added
_.overEvery
- Added
_.overSome
- Added
_.curry
- Added
_.fill
- Added
.transpose
as an alias to_.zip
-
Added
_.bind2
-
Added
_.reduceby
-
Added
_.iterator
(and alias_.iter
) -
Added
_.sliding
-
Added
_.sample
-
Added
_.sampleProb
-
Added
_.where
-
Added
_.sortBy
-
Added
_.findIndex
-
Added
_.findLastIndex
-
Added
_.bindAll
-
Added
_.partial
-
Added
_.kvpairs
-
Added
_.property
-
Added
_.propertyOf
-
Added
_.constant
-
Added parameter
pad
to_.partition
- Improved
_.select
- Fixed
_.compose
- Made
_.contains
as an alias to_.include
- Improved
_.all
- Fixed
_.size
- Improved
_.map
to map key-value pairs to key-value pairs - Fixed
_.partition
to generate an error for partition size < 1.
- 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 alias
_.uId
to_.uid
- Renamed
_.add
to_.addTop
- Renamed
_.uniq
as alias to_.unique
- Renamed
_.symmetric_difference
to_.symmetricDifference
- Removed
_.paired
_.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.
- 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
- Added
_.xor
as alias to_.symmetricDifference
Renamed global MOSES_NO_ALIASES
to global MOSES_ALIASES
. Aliases are not available by default.
Added _.import
, export library to context or _G
Added noConflict
option to _.import
Added MOSES_NO_ALIASES
option when requiring the library
Added _.symmetric_difference
Added _.eachi
Added _.isInteger
Added _.cycle
Added _.count
Added _.countf
Added _.chunk
(inspired from Ruby's Enumerable #chunk)
Added _.chop
as alias to _.removeRange
Added _.skip
as alias to _.last
Added _.diff
as alias to _.difference
Added _.symdiff
as alias to _.symmetric_difference
Added _.forEachi
as alias to _.eachi
Added _.loop
as alias to _.cycle
Renamed _.pairs
to _.paired
Removed _.count
as alias to _.range
Changed _.difference behaviour
, now takes up to two arrays as args
Fixed internal inconsistencies with aliases, should not be used internally with regards to MOSES_NO_ALIASES
option.
Fixed _.each
implementation, should not return anything
- Added chaining interface
- Renamed
_.isObject
to_.isTable
- Added
_.tap
,_.chain
,_()
and_.value
- Added
_.findWhere
- Added
_.contains
- _.functions no longer takes an output table
- Changed _.isArray behaviour, returns true only for real Lua arrays
- Updated specs
- Updated docs and samples
- Removed _.iterate (slower than pairs, ipairs)
- Added _.identity
- Removed _.curry (was more like a closure, will provide a proper implementation later)
- Removed _.iter_to_array
- Most of all functions rewritten
- .import/.mixin now imports library functions to the global env.
- Added type checking functions as object functions
- Added new functions and aliases : Moses has 85 unique functions, 117 counting aliases.
- Added HTML docs
- Added Specs
- Added samples
- Added
_.takeWhile
(as alias to_.selectWhile
) - Added
_.dropWhile
and_.rejectWhile
(as alias) - Updated Moses_Lib_Test.lua
- Updated documentation
- Added
_.selectWhile
- Added
_.mapReduce
and_.mapr
(as alias) - Added
_.mapReduceRight
and_.maprr
(as alias) - Added
_.bindn
- Added
_.appendLists
- Updated Moses_Lib_Test.lua
- Updated documentation
- Removed
_.contains
as alias to_.include
- Added
_.removeRange
(as Array function) - Added
_.sameKeys
and_.contains
(as Collection functions) - Added
_.bind
(as Utility function) - Updated Moses_Lib_Test.lua
- Updated documentation
- Added
_.append
,_.invert
,_.import
,_.template
,_.curry
- Updated Moses_Lib_Test.lua
- Updated documentation
- Initial Release