mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-10-26 14:05:36 +03:00
10 lines
288 B
Plaintext
10 lines
288 B
Plaintext
(StrInc (len, buf)) = (len, #str λx (StrGo len #str (buf x)))
|
|
|
|
(StrGo 0 str) = str
|
|
(StrGo x (head, tail)) = ((+ 1 head), (StrGo (- x 1) tail))
|
|
|
|
# Old str encoding
|
|
Hello = (11, #str λx (104, (101, (108, (108, (111, (32, (119, (111, (114, (108, (100, x))))))))))))
|
|
|
|
main = (StrInc Hello)
|