Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Range Operator

Range Operator

Range Operator is a feature.

A shorthand way for creating arrays.

Languages with Range Operator include Perl, Ruby, Haskell, Elixir

Example from Perl:
# @array = (1..10);
Example from Ruby:
Example from Elixir:
merges-whitespace-feature.html 路 range-operator-feature.html 路 regular-expressions-syntax-sugar-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub