Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. let rec isInListN x n=
  2. match n with
  3. |[]-> false
  4. |e::n' -> (match e with
  5. | AssignArg(x,_) ->true
  6. | _-> isInListN x n'
  7. )
  8.  
  9.  
  10. let rec isInListN x n=
  11. match n with
  12. |[]-> false
  13. |e::n' -> (match e with
  14. | AssignArg(z,_) when z=x->true
  15. | _-> isInListN x n'
  16. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement