+ 2

Ruby - Cryptic code

Step by Step, what does this code do? arr=[1, 3, 4, 5, 6, 7] other_arr=arr.map(&:even?) p other_arr.index(true)

13th Sep 2019, 8:33 AM
Paolo De Nictolis
Paolo De Nictolis - avatar
1 Antwort