Topic: accessing a sequence

topics > computer science > data > Group: sequence operations

access by current position
access by pattern matching
file input/output


Sequences can be accessed relative to a current position, relative to the sequence's beginning, or relative to the sequence's termination. Both elements and sub-sequences can be identified. Structure-marked sequences with level numbers can be accessed through the structure. (cbb 5/80)
Subtopic: asynchronous scanning up

Quote: scan a queue without destruction by appending eoq and wait until it appears [»millHD2_1986]

Subtopic: lists up

Quote: used parameter passing mechanism for concatenation and splitting of lists; list by square brackets around actual or formal parameters [»mckeRM5_1984]

Subtopic: sequence index up

Quote: Icon numbers the positions between characters, from either end of the string [»grisRE4_1980]
QuoteRef: hehnEC7_1975 ;;10 "abc" is 1:(a) 2:(b) 3:© where (character literal)
QuoteRef: hallJC5_1974 ;;44 list has index directive e.g., A(3) points to the 3rd aggregate of A
QuoteRef: kayAC6_1968 ;;25 "abcdef" [2 to 5] means "bcde" and a[2 to 5] means a[2], a[3],... a[5]
QuoteRef: mullAP_1964 ;;450 reference by level e.g. a .circle1. .uparrow. 7 represents 8th (zero relative) symbol (char is zeroth level) from named unit a
QuoteRef: mullAP_1964 ;;451 .circleN. .uparrow. i is from current position with update of current position while .circleN. .?. i is starting at previous name reference and update.
QuoteRef: wileDS11_1973 ;;32 operator to get last one <1.2.3>val = 3

Related Topics up

Topic: access by current position (7 items)
Topic: access by pattern matching (18 items)
Topic: file input/output (21 items)
Topic: sub-sequences
(13 items)

Updated barberCB 3/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.