Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1916

Re: repeating something n times

From "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
Newsgroups comp.programming
References <repeat-20120705210751@ram.dialup.fu-berlin.de>
Subject Re: repeating something n times
Date 2012-07-07 10:05 +0100
Message-ID <vOmdnesK9_U4YWrSnZ2dnUVZ7qadnZ2d@bt.com> (permalink)

Show all headers | View raw


Stefan Ram wrote:

>  In languages like LISP and Smalltalk, at least one can define
>  custom control structures for this

FWIW, in Smalltalk, Integer>>#timesRepeat: is universal (although, oddly, not 
part of the standard).

    4 timesRepeat: [...code...].

Comes in the box with all the major implementations.

    -- chris 

Back to comp.programming | Previous | Next | Find similar | Unroll thread


Thread

Re: repeating something n times "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-07-07 10:05 +0100

csiph-web