Skip to content
Snippets Groups Projects
Commit ef2de754 authored by Alexander Gehrke's avatar Alexander Gehrke
Browse files

[12] Add missing opt method

parent 14d87216
Branches master
No related tags found
No related merge requests found
......@@ -11,3 +11,5 @@ object Combinators:
* If no element is found, the parser should fail. You may use any other parsers and combinators we have defined.
*/
def many1[A](p: Parser[A]): Parser[NonEmptyList[A]] = ???
def opt[A](pa: Parser[A]): Parser[Option[A]] = ???
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment