Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drobiz kovanci x list =
- case kovanci of
- h:t -> if x>h then
- (drobiz kovanci (x-h) (list++[h]))++(drobiz t x list)
- else if x == h then
- [(list++[h])]
- else
- []
- [] -> []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement