Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare fun {Potega X N}
- if N==1 then X else X*{Potega X N-1} end
- end
- declare fun {Funkcja Lst N}
- if Lst==nil then nil
- else
- {Potega Lst.1 N}|{Funkcja Lst.2 N}
- end
- end
- declare L = 1|2|nil
- {Show {Funkcja L 3}}
Add Comment
Please, Sign In to add comment