Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun zipOpt (inlx, inly) =
- let
- fun zipOptI (_, [], ans) = rev ans
- | zipOptI (NONE :: ls, xl, ans) = zipOptI (ls, xl, ans)
- | zipOptI ([], yl, ans) = zipOptI (inlx, yl, ans)
- | zipOptI (SOME x :: xl, y :: yl, ans) = zipOptI (xl, yl, (x, y) :: ans)
- in
- zipOptI (inlx, inly, [])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement