Seite 1 von 1

Assignment 3, Task 3

Verfasst: 2. Mai 2014 18:27
von Talaron
Hello,

are we allowed to use the built-in "zip"-method of the Scala List in this task?

Of course this isn't absolutely necessary (as zip can be modelled with folding itself) but it's making the code much more readable.

Re: Assignment 3, Task 3

Verfasst: 3. Mai 2014 16:34
von Oliver B.
Yes, the task description explicitly says that you can use methods from List, except transpose ;)

Re: Assignment 3, Task 3

Verfasst: 4. Mai 2014 17:38
von Talaron
Thanks for the answer!

Wasn't sure since I wouldn't categorize "zip" as a higher order function.

Re: Assignment 3, Task 3

Verfasst: 4. Mai 2014 18:14
von Oliver B.
You are right, zip is not higher order. You are still allowed to use it.