hy/tests/native_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
..
__init__.hy ideas, ideas. 2013-03-05 18:39:34 -05:00
core.hy Add --each-while and --map-when 2013-11-28 16:15:23 -05:00
defclass.hy Fix missing docstrings from defclass issue #248 2013-07-15 06:58:08 -06:00
language.hy Rewrite the bootstrap macros in hy 2013-09-29 18:13:28 +02:00
math.hy Re-indent Hy code using hy-mode 2013-04-28 16:31:31 +02:00
native_macros.hy Macro if-python2 for compile-time choice between Python 2 and Python 3 code branches 2013-09-02 09:58:35 +02:00
quote.hy Add test for unquote-splice behavior 2013-09-22 15:12:59 +02:00
unless.hy Add a `unless' macro 2013-04-28 17:04:35 +02:00
when.hy Add a `when' macro 2013-04-28 17:04:35 +02:00
with_decorator.hy Rename decorate-with' to with-decorator' 2013-04-28 17:14:22 +02:00