Skip to content

Instantly share code, notes, and snippets.

@Alligator
Last active April 9, 2018 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alligator/b379cc9012829e3bf3140951c3405f4d to your computer and use it in GitHub Desktop.
Save Alligator/b379cc9012829e3bf3140951c3405f4d to your computer and use it in GitHub Desktop.
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