subseq

[generic function] subseq sequence start [end]

Gauche: Extract a subsequence of sequence, starting from start (inclusive) and ending at end (exclusive). If end is omitted, it extracts to the end of the sequence. Provided in gauche.sequence module.

Subseq can be used with generalized set!.

  (set! (subseq seq 2 3) '(a b))