PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Range Operator

Range Operator

Range Operator is a language feature.

A shorthand way for creating arrays.

Languages with Range Operator include Ruby, Perl, Haskell

Example from Ruby:

(3...6)

Example from Perl:

# https://users.cs.cf.ac.uk/Dave.Marshall/PERL/node38.html @array = (1..10);

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub