roc-parser icon indicating copy to clipboard operation
roc-parser copied to clipboard

How to ignore result of a parser?

Open aloussase opened this issue 1 year ago • 1 comments

For example, in Haskell I can do something like:

string "Game " >> digits ...

I tried using ignore, but it doesn't seem to do what I want:

ignore (string "Game ") |> \_ -> digits ...

What would be the correct way to do it?

aloussase avatar Dec 03 '23 00:12 aloussase