optimize letloop: non tail recursive, single recursive function

optimize letloop: non tail recursive, single recursive function
letloop f = (x) -> if! x==1 1 f(x-1)
letloop f = (x) -> if! x==1 1 x+f(x-1) then f(3)