I have a object form this typedef.
type ListDA = (State, [((State, Char), State)], [State])
For a Function, i need the second argument and i don’t now how i get this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could write a helper function:
Or you could do the pattern matching directly in your function parameters, e.g. by replacing
with
You may be better off defining a separate type:
This method defines accessor functions for you.