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

[REBOL] change/at

From: rebol665:ifrance at: 18-Sep-2002 13:21

Hi List, I think I fall in a very common gotcha. The starting point was: test: [ false false false ] i: 2 I wanted to change false to true for the ith position ( [ false false false ] becoming [ false true false ] ). My first attemp was: test/:i: true The result was ** Syntax Error: Invalid word -- :i: ** Near: (line 1) test/:i: true I ran thru my Core.pdf, reading every line with a path word inside. I failed. I was tired. I gave up. Isn't it too bad ? Now I have found a solution change at test i true Does anyone know a better answer ? Wouldn't it be nice to have a /at refinement for change, giving a more intuitive (in my eyes) ? change/at test i true Patrick