Handbook
Glossary
make-mirror ( obj -- assoc )
Factor handbook
»
The language
»
Objects
»
Mirrors
Prev:
<mirror> ( object -- mirror )
Vocabulary
mirrors
Inputs
obj
an
object
Outputs
assoc
an
assoc
Word description
Creates an assoc which reflects the internal structure of the object.
Definition
IN:
mirrors
GENERIC:
make-mirror
( obj -- assoc )
Methods
USING:
assocs
mirrors
;
M:
assoc
make-mirror
;
USING:
hashtables.identity
mirrors
;
M:
identity-hashtable
make-mirror
;
USING:
kernel
mirrors
;
M:
object
make-mirror
<mirror>
;
USING:
assocs
mirrors
sequences
;
M:
sequence
make-mirror
<enumerated>
;
USING:
mirrors
sets
;
M:
set
make-mirror
members
make-mirror
;
USING:
classes.struct
classes.struct.prettyprint
mirrors
;
M:
struct
make-mirror
<struct-mirror>
;