Commit Graph

11 Commits

Author SHA1 Message Date
Wirawan Purwanto
501552a65a * Added zip_gen() to simulate the effect of built-in zip() function, but
implemented as a generator rather than yielding the list right away.
  This is used mainly in loops, where we don't want to generate all the
  elements due to memory concerns.
2012-04-17 11:00:30 -04:00
Wirawan Purwanto
41079fd92c * sugar: Added is_iterable(). 2012-03-19 11:57:19 -04:00
wirawan
2a30c20a79 * Added dict_islice to support slicing while ignoring non-existing keys
in the source dict.
2011-03-10 20:16:58 +00:00
wirawan
3fbc20ddb0 * Correction on notes. 2010-10-25 14:42:50 +00:00
wirawan
5392a71943 * Correcting minor mistake. 2010-09-27 19:40:40 +00:00
wirawan
f1b8746147 * Updating Parameters class: now based on dict.
* Can add two Parameters together, which means joining the two or more dicts,
  much like what function dict_join does.
2010-09-10 21:24:56 +00:00
wirawan
fcba27ae24 * Added list_join, much like dict_join, except for list.
* Added ranges "magic" object to define piecewise ranges.
2010-08-12 19:35:55 +00:00
wirawan
ffd21689be * Parameters class: a way to look for parameters in definite search order
across functions, so that these parameters do not have to be passed in
  kitchen-sink manner.
  WARNING: STILL UNDER TESTING.
2010-05-28 18:47:56 +00:00
wirawan
ba3fcb6b6f * Added: dict_join to join several dicts, with keys from latter dicts taking
higher precedence.
2010-02-19 18:42:15 +00:00
wirawan
37b556ded8 * Added dict_slice, a slicing tool returning a subset of a given dict
(or other dict-like object).
2010-02-08 19:58:44 +00:00
wirawan
5af79a8000 * Syntactic sugars for quick-and-dirty python programming. 2010-01-22 18:46:50 +00:00