Last active
December 10, 2015 23:48
-
-
Save adilakhter/4511771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec zipTwo (x:int list) (y: int list) : ((int*int) list) option = | |
match x,y with | |
| ([], []) -> Some [] | |
| (xhd::xtl, yhd::ytl) -> | |
match zipTwo xtl ytl with | |
| None -> None | |
| Some lst -> Some ((xhd,yhd)::lst) | |
| (_,_) -> None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment