[[1, 2], [3, [4]]].flatten # [1, 2, 3, 4] [1, nil, 2, nil, 3].compact # [1, 2, 3]
Generating explanation with Claude AI...
This will use 10 credits