We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I've found a curious case, which I don't know how to solve. I wonder if I'm missing some obvious solution.
Let's say that I have a type
type UserState = { Sub1: Substate1 Sub2: Substate2 }
And I have a parser of type
let parseWithSub1 : Parser<'a,Substate1> = // Implementation...
Is there a posibility to map this state, so that I can use it like
let parseWithUserState : Parser<'a,UserState> = mapUserState (fun x -> x.Sub1) parseWithSub
where mapUserState would be a hypothetical function of signature ('u1 -> 'u2) -> Parser<'a,'u1> -> Parser<'a,'u2>?
('u1 -> 'u2) -> Parser<'a,'u1> -> Parser<'a,'u2>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I've found a curious case, which I don't know how to solve. I wonder if I'm missing some obvious solution.
Let's say that I have a type
And I have a parser of type
Is there a posibility to map this state, so that I can use it like
where mapUserState would be a hypothetical function of signature
('u1 -> 'u2) -> Parser<'a,'u1> -> Parser<'a,'u2>
?The text was updated successfully, but these errors were encountered: