on 8e080d6 help sign in
26 lines 425 B history raw
1### `++bin`
3Binary to atom
5Parse a tape of binary (0s and 1s) and produce its atomic representation.
7Source
8------
10 ++ bin (bass 2 (most gon but)) :: binary to atom
12Examples
13--------
15 ~zod/try=> (scan "0000" bin)
16 0
17 ~zod/try=> (scan "0001" bin)
18 1
19 ~zod/try=> (scan "0010" bin)
20 2
21 ~zod/try=> (scan "100000001111" bin)
22 2.063
26***