Ruby - Cryptic code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
0 Answers