chialisp 0.5.0

tools for working with chialisp language; compiler, repl, python and wasm bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
(defun partition_inner (matched not-matched F L)
    (if L
        (if (a F (list (f L)))
            (partition_inner (c (f L) matched) not-matched F (r L))
            (partition_inner matched (c (f L) not-matched) F (r L))
        )
        (c matched not-matched)
    )
)

(defun partition (F L)
    (partition_inner () () F L)
)