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