|
|
|
|
|
by hibernator149
773 days ago
|
|
Your intuition is correct. I think you accidentally swapped %s and %d in one of your previous posts, leading to the confusion. The "backwards" in the article is referring to the way the list is processed by the recursive function. The list and the resulting type are in the correct/intuitive order. I also found this sentence confusing. By the way, thinking of a function of type a->b->c as a->(b->c) is technically correct and useful in certain cases, for example, when you are currying. But in most cases you can just read this as a function taking two arguments of types a and b, returning something of type c. |
|