Guest User

Untitled

a guest
Jan 5th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oz 0.23 KB | None | 0 0
  1. declare fun {Potega X N}
  2.        if N==1 then X else X*{Potega X N-1} end
  3.     end
  4.  
  5. declare fun {Funkcja Lst N}
  6.        if Lst==nil then nil
  7.        else
  8.           {Potega Lst.1 N}|{Funkcja Lst.2 N}
  9.        end
  10.     end
  11.  
  12. declare L = 1|2|nil
  13.  
  14. {Show {Funkcja L 3}}
Add Comment
Please, Sign In to add comment