Handbook
Glossary
named-tuple
Vocabulary
named-tuples
Class description
A
mixin-class
that allows you to treat a tuple as both a
sequence
and an
assoc
.
Definition
IN:
named-tuples
MIXIN:
named-tuple
Methods
USING:
accessors
assocs
classes
classes.tuple
kernel
named-tuples
slots.private
;
M:
named-tuple
>alist
dup
class-of
all-slots
[
[
offset>>
slot
]
[
name>>
]
bi
swap
]
with
map>alist
;
USING:
assocs
classes.tuple.private
named-tuples
;
M:
named-tuple
assoc-size
tuple-size
;
USING:
assocs
classes.tuple
kernel
named-tuples
slots.private
;
M:
named-tuple
at*
[
nip
]
[
?offset-of-slot
]
2bi
[
slot
t
]
[
drop
f
f
]
if*
;
USING:
classes.tuple.private
named-tuples
sequences
;
M:
named-tuple
length
tuple-size
;
USING:
classes
classes.tuple
named-tuples
sequences
;
M:
named-tuple
like
class-of
slots>tuple
;
USING:
kernel
math
named-tuples
sequences.private
;
M:
named-tuple
nth-unsafe
[
integer>fixnum
]
dip
array-nth
;
USING:
assocs
classes.tuple
named-tuples
;
M:
named-tuple
set-at
set-slot-named
;
USING:
kernel
math
named-tuples
sequences.private
;
M:
named-tuple
set-nth-unsafe
[
integer>fixnum
]
dip
set-array-nth
;