Skip to content
New issue

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

hdtl functoin #2

Open
sciencemanx opened this issue Nov 6, 2017 · 0 comments
Open

hdtl functoin #2

sciencemanx opened this issue Nov 6, 2017 · 0 comments

Comments

@sciencemanx
Copy link

Would you be opposed to adding a hdtl method of type ('a * 'a t) option? It is functionally equivalent to

let hdtl dl = match (hd dl, tl, dl) with
  | (Some h, Some t) -> Some (h, t)
  | _ -> None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant