Releases: katsaii/gml-prelude
Patch 1.3.2
Monadical
This release brings monad-like behaviour, including three monad operations. The most important of these is bind
, which gives you the ability to apply a function to (most) values, whilst maintaining any error values such as undefined
or []
.
Read more about this in the examples section on monads.
Patch 1.2.1
This release brings refactors and additions to iterators and removes indexable iterators, since they were not as useful as I had hoped they would be.
- Renamed
append
toextend
- The
drop
andtake
operations are now lazy - Added
nth
method. - Removed
seek
,nudge
,reset
, andlocation
methods.
Readers and Indices
This release brings significant changes to iterators, and the inclusion of more primitive "reader" structs for common data structures. The most important change is the ability to create indexable iterators by including an implementation of the __seek__
method.
- Made naming more consistent
- Updated documentation
- Renamed
iterator_range
to justrange
- Packaged documentation into zip
Iterators and Curry
This release brings improvements to iterators and partial application.
Reduced the amount of global scope pollution from commonly named functions.
Initial Release
The initial release of my functional programming library ready for the incoming changes to GML.
Main features:
- Currying functions
- Iterators
- Usability scripts for higher-order functions and array/struct modification