Faresh, 1 year ago I think this is pretty much the imperative equivalent of foldl (acc i -> acc + 3*i) 0 [1…4].
I think this is pretty much the imperative equivalent of foldl (acc i -> acc + 3*i) 0 [1…4].
foldl (acc i -> acc + 3*i) 0 [1…4]