Advertisement
Guest User

Untitled

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