Skip to content Skip to sidebar Skip to footer
Showing posts with the label Programming Languages

Does Ruby Have Something Like Python's List Comprehensions?

Python has a nice feature: print([j**2 for j in [2, 3, 4, 5]]) # => [4, 9, 16, 25] In Ruby it&#… Read more Does Ruby Have Something Like Python's List Comprehensions?