ruby-uebungen/Assignment_025/solution
Thomas Smits fe2c1c6eb6 Update of exercises 2023-05-25 17:47:19 +02:00
..
readme.md Update of exercises 2023-05-25 17:47:19 +02:00

readme.md

Lösung: Map und Reduce

















































































```ruby def char_count(array) counts = array.map { |e| e.length } counts.reduce(:+) end

array = %w{ Free Kevin Mitnick } puts char_count(array)