hy/tests
agentultra 8e44cc3d9a Add --each-while and --map-when
A couple of more macros:

    hy> (--each-while [1 2 3 4 5] (< it 3) (print it))
    1
    2
    3
    hy>

```--each-while``` continues to evaluate the body form while the
predicate form is true for each element in the list.

```--map-when``` uses a predicate form to determine when to apply the
map form upon the element in the list:

    hy> (list (--map-when (even? it) (* it 3) [1 2 3 4]))
    [1, 6, 3, 12]
2013-11-28 16:15:23 -05:00
..
compilers Always import __future__.print_statement in hy code 2013-09-22 15:31:15 +02:00
importer Fix flake error 2013-07-06 20:39:02 +02:00
lex Wire the rply parser 2013-07-28 17:36:36 +02:00
macros Cleanup the hy.macros module 2013-09-29 18:13:28 +02:00
models Make HyList add returns HyList 2013-04-28 17:04:33 +02:00
native_tests Add --each-while and --map-when 2013-11-28 16:15:23 -05:00
resources Rewrite the bootstrap macros in hy 2013-09-29 18:13:28 +02:00
__init__.py Add set of new core functions 2013-07-13 09:55:16 -06:00
test_bin.py Merge pull request #265 from rwtolbert/hyc_args_fix 2013-08-20 01:10:44 -07:00