Difference between revisions of "W1349 Higher Order Functions"
From Coder Merlin
Line 320: | Line 320: | ||
'''A''' | '''A''' | ||
<syntaxhighlight lang="swift"> | <syntaxhighlight lang="swift"> | ||
let adjustedEfficacies = efficacies.map {$0 * 1.59} // | |||
</syntaxhighlight> | </syntaxhighlight> | ||
'''B''' | '''B''' | ||
<syntaxhighlight lang="swift"> | <syntaxhighlight lang="swift"> | ||
let adjustedEfficacies = efficacies.map {$1 * 1.59} // | |||
</syntaxhighlight> | </syntaxhighlight> | ||
'''C''' | '''C''' |
Revision as of 16:09, 24 March 2019
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Exercises[edit]
Professor Snape needs your help to organize ingredients for a wide variety of potions. You'll need to verify blocks of code to ensure that they're doing exactly what Professor Snape needs. Be careful! Any mistakes can be hazardous to his health. In some cases, more than one answer will be correct.