Posted on 18 stycznia, 2019 by Marcin Posted in Programowanie, Standard ML Napisz program który zrobi prostą funkcję w SML f(1) = 2 = 21 f(2) = 4 = 22 f(3) = 16 = 24 f(4) = 256 = 28 f(5) = 65536 = 216 Kod źródłowy: fun f(x:int) = if x=1 then 2 else f(x-1)*f(x-1); Wywołania funkcji: f(1); f(2); f(3); f(4); f(5);