17 ?: ?& (gte (met 3 a) 2)
22 ?& ?|(=('-' vis) ?&((gte vis 'a') (lte vis 'z')))
36 ++ rf `tape`[?-(a $& '&', $| '|', * !!) ~]
43 ++ rn `tape`[?>(=(0 a) '~') ~]
49 ++ rt `tape`['\'' (weld (mesc (trip a)) `tape`['\'' ~])]
61 ++ rtam `tape`['%' (trip a)]
67 ++ rub `tape`['0' 'b' (rum 2 ~ |=(b/@ (add '0' b)))]
73 ++ rud (rum 10 ~ |=(b/@ (add '0' b)))
80 |= {b/@ c/tape d/$-(@ @)}
88 =+ f=&(!=(0 e) =(0 (mod e ?:(=(10 b) 3 4))))
91 c [(d (mod a b)) ?:(f [?:(=(10 b) ',' '-') c] c)]
108 $(a (rsh 5 1 a), b (sub b 4))
109 `tape`['-' '-' $(a (end 5 1 a), b 4)]
118 (weld (trip (tod:po c)) (trip (tos:po (mix c d))))
121 (weld ^$(a c, b (met 3 c)) `tape`['-' $(a (mix c d), b 2)])
140 ?:((lth b 26) (add 65 b) ?:((lth b 52) (add 71 b) (sub b 4)))
147 ++ rux `tape`['0' 'x' (rum 16 ~ |=(b/@ (add b ?:((lth b 10) 48 87))))]
149 :::::::::::::::::::::::::::::::::::::::::::::::::::::: ::
153------------------------------------------------------------------------
162Produce the case insensitive (all lowercase) [`++cord`]() of a [`++tape`]().
180 (turn vib |=(a/@ ?.(&((gte a 'A') (lte a 'Z')) a (add 32 a))))
186 7.309.170.810.699.673.450
187 > `cord`(cass "john doe")
189 > (cass "abc, 123, !@#")
190 2.792.832.775.110.938.439.066.079.945.313
191 > `cord`(cass "abc, 123, !@#")
200Produce a `++cord` from a `++tape`.
215 ++ crip |=(a=tape `@t`(rap 3 a)) :: tape to cord
222 > (crip "abc 123 !@#")
233Turn all occurances of lowercase letters in any `++tape` into uppercase
234letters, as a `++cord`.
253 (turn vib |=(a=@ ?.(&((gte a 'a') (lte a 'z')) a (sub a 32))))
261 > (cuss "abc ABC 123 !@#")
265 > (cuss "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsQqRrVvWwXxYyZz")
266 'AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSQQRRVVWWXXYYZZ'
274Escape special characters, used in `++show`.
289 ++ mesc :: ctrl code escape
295 ['\\' '\\' $(vib t.vib)]
296 ?: ?|((gth i.vib 126) (lth i.vib 32) =(`@`39 i.vib))
297 ['\\' (welp ~(rux at i.vib) '/' $(vib t.vib))]
309 "as\0x27/sa\0xc3/\0x9f/"
318Add `a` repetitions of character `b` to the head of `++tape` `c`.
323`a` and `b` are atoms.
335 ++ runt :: prepend repeatedly
336 |= [[a/@ b/@] c/tape]
346 /> (runt [2 '/'] "ham")
348 /> (runt [10 'a'] "")
358Soft-cast validity by odor.
363`a` is a `++span` (`@ta`).
375 ++ sand :: atom sanity
378 ?.(((sane a) b) ~ [~ b])
384 /> `(unit @ta)`((sand %ta) 'sym-som')
386 /> `(unit @ta)`((sand %ta) 'err!')
396Check validity by odor. Produces a gate.
401`a` is a `++span` (`@ta`).
413 ++ sane :: atom sanity
418 =+ [inx=0 len=(met 3 b)]
422 =+ cur=(cut 3 [inx 1] b)
423 ?& ?| &((gte cur 'a') (lte cur 'z'))
424 &(=('-' cur) !=(0 inx) !=(len inx))
425 &(&((gte cur '0') (lte cur '9')) !=(0 inx))
432 =+ cur=(cut 3 [inx 1] b)
433 ?& ?| &((gte cur 'a') (lte cur 'z'))
434 &((gte cur '0') (lte cur '9'))
435 |(=('-' cur) =('~' cur) =('_' cur) =('.' cur))
442 ?: &((lth cur 32) !=(10 cur)) |
444 ?& |(=(1 len) =+(i=1 |-(|(=(i len) &((gte (cut 3 [i 1] b) 128) $(i +(i)))))))
452 /> ((sane %tas) %mol)
454 /> ((sane %tas) 'lam')
456 /> ((sane %tas) 'more ace')
466Produces the number of utf8 bytes.
486 ?> |((gte b 32) =(10 b))
487 ?:((lte b 127) 1 ?:((lte b 223) 2 ?:((lte b 239) 3 4)))
504Split first `a` characters off `++tape` `b`.
516A cell of `++tape`s, `p` and `q`.
521 ++ trim :: 31-bit nonzero
525 =+ haz=(spec syd key)
526 =+ ham=(mix (rsh 0 31 haz) (end 0 31 haz))
527 ?.(=(0 ham) ham $(syd +(syd)))
535 /> (trim 5 "lasok termun")
536 [p="lasok" q=" termun"]
547Produce a `++tape` from `++cord`.
562 ++ trip :: cord to tape
567 [^-(@ta (end 3 1 a)) $(a (rsh 3 1 a))]
576 /> (trip 'abc 123 !@#')
588Convert `++tape` to a `++list` of codepoints (`@c`).
598A `++list` of codepoints `@c`.
603 ++ tuba :: utf8 to utf32 tape
606 (rip 5 (turf (rap 3 a))) :: XX horrible
613 ~[~-~44f. ~-. ~-~442. ~-~443. ~-~442.]
615 ~[~-c ~-h ~-a ~-r ~-s]
624Wrap a `++list` of utf32 codepoints into a utf8 `++tape`.
629`a` is a `++list` of `@c`.
639 ++ tufa :: utf32 to utf8 tape
643 (weld (rip 3 (tuft i.a)) $(a t.a))
649 /> (tufa ~[~-~44f. ~-. ~-~442. ~-~443. ~-~442.])
651 /> (tufa ((list @c) ~[%a %b 0xb1 %c]))
661Convert utf32 glyph to
667`a` is a codepoint (`@c`).
677 ++ tuft :: utf32 to utf8 text
685 =+ c=$(a (rsh 5 1 a))
689 :* (mix 0b1100.0000 (cut 0 [6 5] b))
690 (mix 0b1000.0000 (end 0 6 b))
694 :* (mix 0b1110.0000 (cut 0 [12 4] b))
695 (mix 0b1000.0000 (cut 0 [6 6] b))
696 (mix 0b1000.0000 (end 0 6 b))
699 :* (mix 0b1111.0000 (cut 0 [18 3] b))
700 (mix 0b1000.0000 (cut 0 [12 6] b))
701 (mix 0b1000.0000 (cut 0 [6 6] b))
702 (mix 0b1000.0000 (end 0 6 b))
722Convert utf8 (`++cord`) to utf32 codepoints.
732A `@c`, UTF-32 codepoint.
737 ++ turf :: utf8 to utf32
751 $3 [[16 6] [8 6] [0 4] ~]
752 $4 [[24 6] [16 6] [8 6] [0 3] ~]
754 |=({p/@ q/@} [q (cut 0 [p q] a)])
755 ?. =((tuft c) (end 3 b a)) ~|(%bad-utf8 !!)
767 ~-~44f..~442.~443.~442.
769 0x82.d183.d182.d120.8fd1
770 /> `@ux`(turf 'я тут')
771 0x442.0000.0443.0000.0442.0000.0020.0000.044f
780Escape `++span` `~` as `~~` and `_` as `~-`. Used for printing.
785`a` is a `++span` (`@ta`).
795 ++ wack :: coin format
803 ?: =('~' i.b) ['~' '~' $(b t.b)]
804 ?: =('_' i.b) ['~' '-' $(b t.b)]
813 /> `@t`(wack '~20_sam~')
815 > ~(rend co %many ~[`ud/5 `ta/'~20_sam'])
827Unescape `++span` `~~` as `~` and `~-` as `_`.
842 ++ wick :: knot format
846 =- ?^(b ~ (some (rap 3 (flop c))))
848 |- ^- {b/tape c/tape}
854 $'~' $(b t.t.b, c ['~' c])
855 $'-' $(b t.t.b, c ['_' c])
863 /> `@t`(wick '~-ams~~lop')
865 /> `@t`(wick (wack '~20_sam~'))
875Unescape `++cord` codepoints.
890 ++ woad :: cord format
903 => .(b (end 3 1 c), c (rsh 3 1 c))
904 ?+ b =- (weld (rip 3 (tuft p.d)) $(a q.d))
916 ?: &((gte b '0') (lte b '9')) 48
917 ?>(&((gte b 'a') (lte b 'z')) 87)
927 /> (woad ~.~b6.20.as)
937Escape `++cord` codepoints.
942`a` is a `++span` (`@ta`).
952 ++ wood :: cord format
960 =+ c=(turf (end 3 b a))
961 =+ d=$(a (rsh 3 b a))
962 ?: ?| &((gte c 'a') (lte c 'z'))
963 &((gte c '0') (lte c '9'))
975 [(add ?:((lte f 9) 48 87) f) $(c (end 2 e c))]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list