3 lines
88 B
Ruby
3 lines
88 B
Ruby
|
|
# Create an array of lengths of every line.
|
||
|
|
ary = stream.map {|line| line.chomp.length}
|