bitwise shrub/kav / lib / fun.kav
 1/%
 2The identity function. Returns whatever it's given
 3%/
 4pub fn id[a: type](x: a) -> a {
 5	x
 6}
 7
 8/%
 9Returns the first argument and discards the second.
10%/
11pub fn const[a: type, b: utype](x: a, y: b) -> a {
12	x
13}
14
15/%
16Applies a function to an argument.
17%/
18pub fn apply[a: type, b: type](f: fn(a) -> b, x: a) -> b {
19	f(x)
20}