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