REBOL3 tracker
  0.9.12 beta
Ticket #0000613 User: anonymous

Project:



rss
TypeWish Statusreviewed Date11-Feb-2009 16:50
Versionalpha 33 Categoryn/a Submitted byBrianH
PlatformAll Severityminor Prioritynormal

Summary PICKZ and POKEZ functions for 0-based indexing.
Description PICKZ and POKEZ would be (preferably native) wrappers around the PICK and POKE actions that would add 1 to their index argument before passing it along. This would provide 0-based indexing for all series.

These functions would be limited to datatypes that take the PICK and POKE actions with numeric indexes only. The map! type can take numeric keys, but support for map! in PICKZ and POKEZ seems silly.

The names come from the Rebcode operations.
Example code

			

Assigned ton/a Fixed in- Last Update4-Mar-2013 21:24


Comments
(0000419)
BrianH
11-Feb-2009 16:52

If these are native it could let us make vector! 1-based without much overhead for 0-based use.
(0003564)
abolka
4-Mar-2013 21:24

Strong +1 for adding these.

Please also add a "0-based" INDEX? dual: I'd suggest INDEXZ?.

Date User Field Action Change
4-Mar-2013 21:24 abolka Comment : 0003564 Modified -
4-Mar-2013 21:24 abolka Comment : 0003564 Added -
12-Feb-2009 22:10 BrianH Severity Modified not a bug => minor
11-Feb-2009 22:34 BrianH Severity Modified minor => not a bug
11-Feb-2009 16:52 BrianH Comment : 0000419 Added -
11-Feb-2009 16:51 BrianH Description Modified -
11-Feb-2009 16:51 BrianH Status Modified submitted => reviewed
11-Feb-2009 16:50 BrianH Ticket Added -