-
-
Save LottieVixen/689239b1e9d11b3672cb7d0545a5cfcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function map(f a) { //missing a seperator here | |
function map(f, a) { //the correct line | |
const result = new Array(a.length); | |
for (let i = 0; i < a.length; i++) { | |
result[i] = f(a[i]) //missing a line terminator/seperator | |
result[i] = f(a[i]); //not missing it | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment