Version 0.8.8
"More spicy" edition:
Changes:
curry
: by default,TypeError
if args remaining when exiting top-level curry context- add dynvar
curry_toplevel_passthrough
to switch the error off
- add dynvar
rotate
now conceptually shifts the arg slots, not the values; this variant seems easier to reason about.- accept just tuple (not list) as the pythonic multiple-return-values thing in
curry
,compose
,pipe
New:
- add
make_dynvar
, to set a default value for a dynamic variable. Eliminates the need forif 'x' in dyn
checks. - as an optional extra, add a MacroPy3 based autocurry macro, which automatically curries all function calls that lexically reside in a
with curry
block. (Make your Python look somewhat like Haskell.)
Bugfixes/optimizations:
nth
: fix off-by-one bugdyn
: skip pushing/popping a scope if no bindings given