Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Iteration over object "properties"

From: dhsunanda::gmail::com at: 28-Feb-2008 13:17

Kai:
> How do I iterate over the "properties" of an object?
In addition to the other replies: if you need the field names too: o: make object! [ p1: "Berlin" p2: "Germany" p3: 3'400'000 ] foreach word next first o [ print [word " = " get in o word] ]
> p1 = Berlin > p2 = Germany > p3 = 3400000
Sunanda