Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):013:0> 3.times.map { |n| n == 1 }
- => [false, true, false]
- irb(main):014:0> 3.times.map.count { |n| n == 1 }
- => 1
- irb(main):015:0> [false, true, false].count
- => 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement