Range Operator is an actively used design pattern. A shorthand way for creating arrays.

?Years Old
  • Have a question about Range Operator not answered here? Email me and let me know how I can help.
  • Read more about Range Operator

Languages with Range Operator include haskell, perl, ruby

Example from perl:

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

Example from ruby:


Last updated August 9th, 2020

Edit Range Operator on GitHub