-
-
Save rightfold/d865e3377dc843f9975c 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
func map(xs, f) | |
throw from f | |
{ | |
let mutable result := list(); // exception thrown here is not OK | |
for x in xs { // exception thrown here is not OK | |
result := result :+ // exception thrown here is not OK | |
f(x); // exception thrown here is OK | |
} // exception thrown here is not OK | |
result; // exception thrown here is not OK | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment