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