Advertisement
Guest User

Untitled

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