ruby-uebungen/Assignment_028/solution
Thomas Smits 25d5ac7ffd Initial commit 2023-05-23 09:19:31 +02:00
..
readme.md Initial commit 2023-05-23 09:19:31 +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)