Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   | ListP ps => (case ex of
  2.             List xs => case (xs, ps) of
  3.                 (h::nil, g::nil) => match(h, g)
  4.                 | (h::t, g::r) => case match(h,g) of
  5.                     SOME v => SOME (v @ (case match(List t, ListP r) of
  6.                         SOME a => a
  7.                         | NONE => [("NONE", Constant 1)]
  8.                         ))
  9.                     | NONE => NONE   )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement