internal package Foswiki::Iterator::NumberRangeIterator

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

internal package Foswiki::Iterator::NumberRangeIterator is a Foswiki::Iterator

Iterator over a range of integer values, with programmable increment.

ClassMethod new($start, $end, $inc)

Construct a new iterator from start to end step inc. The range is inclusive i.e. if $end == $start, you will get an iterator that returns a single value.

The iteration step is the absolute value of $inc, and defaults to 1.

Topic revision: r1 - 04 Jul 2015, UnknownUser

  • User Reference
  • BeginnersStartHere
  • EditingShorthand
  • Macros
  • MacrosQuickReference
  • FormattedSearch
  • QuerySearch
  • DocumentGraphics
  • SkinBrowser
  • InstalledPlugins

  • Admin Maintenance
  • Reference Manual
  • AdminToolsCategory
  • InterWikis
  • ManagingWebs
  • SiteTools
  • DefaultPreferences
  • WebPreferences

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Structural Basis of Medical Practice? Send feedback