This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fe2c1c6eb6
ruby-uebungen
/
Assignment_025
/
solution
/
readme.md
543 B
Raw
Blame
History
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)