Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Releases: nmbooker/python-funbox

Version 0.8

14 Jul 19:13

Choose a tag to compare

New modules:

  • funbox.pairs -- operations on pairs: fst, snd, lift_fst, lift_snd, swap, decorate
  • funbox.op -- curried Python operators
  • funbox.iterators.ordered -- includes partition_o, a version of partition optimised for suitably sorted iterators

New functions:

  • funbox.iterators.partition -- partition an iterator into two sub-iterators (trues, falses)
  • funbox.iterators.partition_strict -- strict version of partition (consumes all items only once, returns lists)
  • funbox.iterators.sift -- sift an iterator into a series of sub-iterators (like a set of real increasingly-fine sieves)
  • funbox.iterators.sift_strict -- strict version of sift that returns lists and consumes items all at once.

Supports Python 3 better:

  • tidied up imports and tests so that Python 3 can handle them.

Tests:

  • My 'runtests' script now uses nose and runs the tests under list of different nosetests programs, instead of trying to find tests itself and running them directly under the interpreter.