strings.tables: fixing issue slicing empty arrays.
parent
01dddd5381
commit
e23883d07e
|
@ -17,6 +17,8 @@ IN: strings.tables
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
: format-table ( table -- seq )
|
: format-table ( table -- seq )
|
||||||
[ [ string-lines ] map format-row flip ] map concat
|
[ [ string-lines ] map format-row flip ] map concat flip
|
||||||
flip [ but-last-slice [ format-column ] map! drop ] keep
|
[ { } ] [
|
||||||
flip [ " " join ] map! ;
|
[ but-last-slice [ format-column ] map! drop ] keep
|
||||||
|
flip [ " " join ] map!
|
||||||
|
] if-empty ;
|
||||||
|
|
Loading…
Reference in New Issue