Guest User

Untitled

a guest
Feb 10th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. uncode' lst = uncode 1 (c-1) [] k
  2.             where uncode n p z k |p==0 = n
  3.                                  |otherwise = uncode (des z) (p-1) (1:(take n k)) (drop n k)
  4.                                
  5.  
  6.  
  7.                   k lst = drop (c lst +1) lst
  8.  
  9.                   c lst |head lst == 1 = 1+( c (tail lst)  )
  10.                         |otherwise = 0
Advertisement
Add Comment
Please, Sign In to add comment