Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
+ 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)

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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Can you give me some advice on what project I can start with today to practice HTML, CSS, and JavaScript?
0 Votes
@sololearn Python
1 Votes
I've a HTML code question
0 Votes
Is the Python Developer course the final course of Python?
0 Votes
Appointment Booking website
0 Votes
C++
0 Votes
I am asking for your help, I need to optimisate my code.
0 Votes
Building an AI Call Tracking & Routing System — Anyone tried it?
0 Votes
Activate account
0 Votes
Is this for use
0 Votes