2017-03-02 19:09:46 -05:00
|
|
|
USING: accessors assocs classes hashtables kernel linked-assocs
|
2015-11-04 12:16:02 -05:00
|
|
|
prettyprint.backend prettyprint.custom ;
|
|
|
|
IN: linked-assocs.prettyprint
|
|
|
|
|
2017-03-02 19:09:46 -05:00
|
|
|
PREDICATE: linked-hash < linked-assoc
|
|
|
|
[ class-of linked-assoc = ] [ assoc>> hashtable? ] bi and ;
|
2015-11-04 12:16:02 -05:00
|
|
|
|
|
|
|
M: linked-hash pprint-delims drop \ LH{ \ } ;
|
|
|
|
|
|
|
|
M: linked-hash >pprint-sequence >alist ;
|
|
|
|
|
|
|
|
M: linked-hash pprint-narrow? drop t ;
|
|
|
|
|
|
|
|
M: linked-hash pprint*
|
|
|
|
[ pprint-object ] with-extra-nesting-level ;
|