mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 16:36:13 +03:00
7 lines
204 B
Plaintext
7 lines
204 B
Plaintext
Parser.pick
|
|
: (Parser Char)
|
|
= λcode
|
|
let P = λx(Parser.Result Char)
|
|
let cons = λhead λtail (Parser.Result.done Char tail head)
|
|
let nil = (Parser.Result.fail Char "empty")
|
|
(~code P cons nil) |