Ellipsis (computer programming): Difference between revisions

Content deleted Content added
editing a link
Aptasiiii (talk | contribs)
m added Apache to Groovy because it joined the ASF
Line 3:
 
== Ranges ==
In some [[programming language]]s (including [[Ada (programming language)|Ada]], [[Perl]], [[Ruby (programming language)|Ruby]], [[Groovy (programming language)|Apache Groovy]], [[Haskell (programming language)|Haskell]], and [[Pascal (programming language)|Pascal]]), a shortened two-dot ellipsis is used to represent a range of values given two endpoints; for example, to iterate through a list of [[integer]]s between 1 and 100 inclusive in Perl:
 
:<code>foreach (1..100)</code>