Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. let duplicate(k,xs) =
  2. let rec wew(kK,xsS) =
  3. match (kK,xsS) with
  4. (_,LNil) -> LNil
  5. | (0,LCons(_,t)) -> wew(k,t())
  6. | (n,LCons(h,_)) -> LCons(h, function () -> wew(kK-1,xsS))
  7. in wew(k,xs);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement