on 492ae2f help sign in
32 lines 759 B history raw
1---
2sort: 9
3---
5`|+ barlus`
6===========
8Function with unreadable sample.
10Produces:a dry `%iron` gate with argument (aka sample) `$*(p)` and arms
11`q`. Similar to `|=`, but differs in that its input (sample) cannot be
12read and thus cannot interfere with the type system.
14Examples:
16 ~zod/try=> +<:|+(a/@ a)
17 ! -axis.6
18 ! peek-park
19 ! exit
20 ~zod/try=> +<:|=(a/@ a)
21 a=0
23Here we're trying to read the sample, using the head of the tail of two different kinds of functions. With `|+` you can see we cause an error, whereas with `|=` our default sample is `a=0`.
25 ~zod/try=> %.(20 |+(a/@ a))
26 20
27 ~zod/try=> %.(20 |=(a/@ a))
28 20
29 ~zod/try=> %.(20 |+(a/@ (add a 12)))
30 32
32Kicking a `|+` gate, however, is the same as `|=`.