aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/fun/gen.bruijn
blob: 1333baa5b6f01b0d5d83bae9bc0139d4a8bfbc7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# generates long expressions from short ones

# TODO: This should be linear time according to RKNL paper
#       possible reasons: box/map copying, GC

:import std/Math .

seed (+23u)

dup [0 0]

main [seed dup 0] ⧗ Unary → Woah