digest multimethod
Methods
- digest(a:Arr, chunk_size:Int, marker:Str='(...)') Source: stdlib.ngs:5619
Convert an array to a possibly shorter version, for displaying to human. Parameters
chunk_size number of elements to retain at the beginning and at the end. marker how to mark the cut elements in the middle. Returns
ArrExample
my_array = Arr(1...100) digest(my_array, 2).each(echo) # 1 # 2 # (...) # 99 # 100