prettyprint.backend: don't bomb if printing length-limited sequence which doesn't like being resized itself. Instead convert to array of elements first

db4
Slava Pestov 2009-09-23 02:48:23 -05:00
parent 7d39499d86
commit 3d4ce094d2
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ M: tuple pprint*
] when ;
: pprint-elements ( seq -- )
>array
do-length-limit
[ [ pprint* ] each ] dip
[ "~" swap number>string " more~" 3append text ] when* ;