Advertisement
Guest User

Untitled

a guest
Sep 25th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun zipOpt (inlx, inly) =
  2.   let
  3.     fun zipOptI (_, [], ans) = rev ans
  4.       | zipOptI (NONE :: ls, xl, ans) = zipOptI (ls, xl, ans)
  5.       | zipOptI ([], yl, ans) = zipOptI (inlx, yl, ans)
  6.       | zipOptI (SOME x :: xl, y :: yl, ans) = zipOptI (xl, yl, (x, y) :: ans)
  7.   in
  8.     zipOptI (inlx, inly, [])
  9.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement