PLDB
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:
# https://users.cs.cf.ac.uk/Dave.Marshall/PERL/node38.html @array = (1..10);
Example from Ruby:
(3...6)
Example from Elixir:
1..3
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 feedback@pldb.com