You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/-- Matches one out of a list of characters. -/defone_of (cs : list char) : parser char :=
decorate_errors (do c ← cs, return c.to_string) $
sat (∈ cs)
Synport:
/-- Matches one out of a list of characters. -/defoneOf (cs : List Charₓ) : Parser Charₓ :=
(decorateErrors dolet c ← cs
return c) <|
sat (· ∈ cs)
Note that the .to_string disappears.
The text was updated successfully, but these errors were encountered:
Lean 3:
Synport:
Note that the
.to_string
disappears.The text was updated successfully, but these errors were encountered: