Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun follows f [] = true
  2.   | follows f [x1] = true
  3.   | follows f [x1, x2]  =  if not(f(x1, x2)) then false else true
  4.   | follows f (x1 :: x2 :: xs) = if not(f(x1, x2)) then false else follows f xs;
  5.  
  6.  
  7. follows op<> [1,2,3,4,1];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement