Releases: sopherapps/funml
Releases · sopherapps/funml
FunML v0.3.8
Added
- Expose the
Record
type on the rootfunml
package
FunML v0.3.7
Added
- Add
to_dict
to convert a record into a dictionary
FunML v0.3.6
Changed
- Records can have fields with subscripted builtin types like
list[str]
thanks tofrom __future__ import annotations
. - Records can define default values
FunML v0.3.5
Changed
- Remove typings of
Expression
,Pipeline
andOperation
.
FunML v0.3.4
Changed
- Changed typings of
Expression
,Pipeline
andOperation
to be subscriptable likeCallable
is.
FunML v0.3.3
Added
- Add ability to curry functions i.e. transform functions with multiple args into functions with fewer args
FunML v0.3.2
Changed
- Signature of
__rshift__
forPipeline
andExpression
returns either aPipeline
orAny
result of executing the
pipeline.
FunML v0.3.1
Added
- Added
AsyncPipeline
to handle the pipelines that have asynchronous routines
FunML v0.3.0
Added
- Added
Pipeline
's to move all piping to them
Changed
- Removed
Context
- Removed
let
andAssignment
's as these had side effects
Fixed
- Made expressions pure to avoid unexpected outcomes.
FunML v0.2.0
Added
- Result helpers:
if_ok
,if_err
,is_ok
,is_err
. - Option helpers:
if_some
,if_none
,is_some
,is_none
. - Sequence helpers:
imap
,ifilter
,ireduce
. - Pipeline helper:
funml.execute()
.
Changed
- Changed creation of records to use classes decorated with
record
- Changed creation of enums to use classes subclassed from
funml.Enum
- Removed
map
andfilter
methods ofIList
Fixed
- Fixed equality check of Result.ERR as originally Result.ERR(TypeError()) was not equal to Result.ERR(TypeError()).