Handbook
Glossary
virtual-exemplar ( seq -- seq' )
Virtual sequence protocol
Prev:
length ( seq -- n )
Next:
virtual@ ( n seq -- n' seq' )
Vocabulary
sequences
Inputs
seq
a
sequence
Outputs
seq'
a
sequence
Word description
Part of the virtual sequence protocol, this word is used to return an exemplar of the underlying storage. This is used in words like
new-sequence
.
Examples
USING: prettyprint sequences ; 1 3 { 14 15 16 17 } <slice> virtual-exemplar .
{ 14 15 16 17 }
Definition
IN:
sequences
GENERIC:
virtual-exemplar
( seq -- seq' )
Methods
USING:
accessors
sequences
sequences.modified
;
M:
1modified
virtual-exemplar
seq>>
;
USING:
math.blas.vectors
math.blas.vectors.private
sequences
;
M:
blas-vector-base
virtual-exemplar
(blas-direct-array)
;
USING:
accessors
kernel
sequences
;
M:
composed
virtual-exemplar
first>>
;
USING:
accessors
sequences
sequences.cords
;
M:
cord
virtual-exemplar
head>>
;
inline
USING:
accessors
sequences
sequences.repeating
;
M:
cycles
virtual-exemplar
circular>>
;
USING:
accessors
sequences
sequences.merged
;
M:
merged
virtual-exemplar
seqs>>
?first
;
inline
USING:
accessors
sequences
sequences.inserters
;
M:
offset-growable
virtual-exemplar
underlying>>
;
inline
USING:
accessors
sequences
sequences.modified
;
M:
summed
virtual-exemplar
seqs>>
?first
;
USING:
accessors
sequences
;
M:
wrapped-sequence
virtual-exemplar
seq>>
;
inline