Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. drobiz kovanci x list  =
  2.  case kovanci of
  3.   h:t -> if  x>h then
  4.            (drobiz kovanci (x-h) (list++[h]))++(drobiz t x list)
  5.          else if x == h then
  6.             [(list++[h])]
  7.          else
  8.            []
  9.   [] -> []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement