mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
12 lines
250 B
Plaintext
12 lines
250 B
Plaintext
Parser.until
|
|
: ∀(A: *)
|
|
∀(until: (Parser Bool))
|
|
∀(parse: (Parser A))
|
|
(Parser (List A))
|
|
= λA λuntil λparse
|
|
(Parser.map
|
|
(List.Concatenator A)
|
|
(List A)
|
|
(List.Concatenator.build A)
|
|
(Parser.until.go A until parse λx x)
|
|
) |