Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. fun inseachHelper(n, L1, L2) =
  2. if null L2 then nil
  3. else inseachHelper(n, (hd L2) @ L1, tl L2) @ L1 :: n :: L2;
  4.  
  5. fun inseach(n, L: int list) =
  6. inseachHelper(n, nil, L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement