But there's no pun in that. (Also, product[1..x] is shorter.</PPCG addict>)

Greetings,
Ørjan.

On Mon, 17 Jul 2017, Josh T wrote:

I kind of prefer
fact x = foldl (*) 1 [1..x]
myself.

天火狐

On 16 July 2017 at 11:16, Ørjan Johansen <oer...@nvg.ntnu.no> wrote:

On Sun, 16 Jul 2017, V.J Rada wrote:

fun fact: i'm dumb


fun fact 0 = 1 | fact n = n * fact (n - 1)

Greetings,
Ørjan.

Reply via email to