class example_iterator
new: =>
@mytable = {
name: "Bill"
age: 200
}
iterator: =>
return ->
{k,v} for k,v in pairs @mytable
myexample = example_iterator!
for k,v in myexample\iterator!
print k,v
iterator: => pairs @mytable
--
You received this message because you are subscribed to the Google Groups "MoonScript Users" group.
To post to this group, send email to moonscri...@googlegroups.com.
Visit this group at http://groups.google.com/group/moonscript-users.