Skip to main content

Timeline for answer to Destructuring in a Ruby block when using index by Joshua Pinter

Current License: CC BY-SA 4.0

Post Revisions

3 events
when toggle format what by license comment
Aug 19, 2024 at 22:05 comment added Cary Swoveland Just as (first, second), idx = [[[1,2], [3,4]], 2] produces first #=> [1,2], second #=> [3,4], idx #=> 2. See the doc for Array Decomposition.
Aug 19, 2024 at 13:47 history edited jonrsharpe CC BY-SA 4.0
deleted 60 characters in body
Aug 19, 2024 at 13:27 history answered Joshua Pinter CC BY-SA 4.0