Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> zipTwo [] [];;
val it : (int * int) list option = Some []
> zipTwo [1;2] [2;4;8];;
val it : (int * int) list option = None
> zipTwo [1;2;3] [2;4;8];;
val it : (int * int) list option = Some [(1, 2); (2, 4); (3, 8)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment