-
-
Save Alligator/8b8c3fe5297435925da2b788e138b599 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Wren { | |
construct new() { | |
var a = 0 | |
_list = [1,2,3].map{|i| | |
a = a + 1 | |
return a | |
} | |
} | |
printList() { | |
for (item in _list) { | |
System.print(item.toString) | |
} | |
} | |
} | |
var w = Wren.new() | |
w.printList() | |
w.printList() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment