elif
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
19 ms·
- 361.▲
- 362.▲
- 363.▲
- 364.▲
- 365.▲
- 366.▲
- 367.▲
- 368.▲
nested_example = [1, 2, 3, 4, 5].map do [it, (1..it).map { it * it }]
end Has an ambiguity, so you just add |x| to one of them.. nested_example = [1, 2, 3, 4, 5].map do |x| [x, (1..x).map { x * it }]
end Seems like a mental ov - 369.▲
- 370.▲
- 371.▲
- 372.▲
- 373.▲
- 374.▲
- 375.▲
- 376.▲
- 377.▲
- 378.▲
- 379.▲
- 380.▲
- 381.▲
- 382.▲
- 383.▲
- 384.▲
- 385.▲
- 386.▲
- 387.▲
- 388.▲
- 389.▲
- 390.▲
More ›