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

[REBOL] Re: Deleting elements from a block

From: greggirwin:starband at: 26-Sep-2001 13:29

<< If I have a block of say 4 elements, how can I delete JUST the 3rd element? >> Remove operates on the current position in the series. To specify that, you can use at.
>> tmp: [1 2 3 4]
== [1 2 3 4]
>> remove at tmp 3
== [4]
>> tmp
== [1 2 4] Make note, also, of what is returned to you when you use remove. --Gregg