mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
7 lines
201 B
Plaintext
7 lines
201 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) |