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

[REBOL] Re: paths & lookups & change

From: SunandaDH:aol at: 18-Oct-2003 5:41

Robert:
> I would like to write something like this, to increment the integer in the > block: > > test/:key: test/:key + 1
That'd be a great extension to the language.
> How can I do such a thing? Using to-set-path? I tried but failed. Robert
This works, and you could make a function of it: test: ["Bug Report" 1] poke test ;; series index? temp: next find test "bug report" ;;location in series 1 + first temp ;; new value Sunanda