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


Groups > comp.programming > #1916 > unrolled thread

Re: repeating something n times

Started by"Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
First post2012-07-07 10:05 +0100
Last post2012-07-07 10:05 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.programming

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#1916 — Re: repeating something n times

From"Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
Date2012-07-07 10:05 +0100
SubjectRe: repeating something n times
Message-ID<vOmdnesK9_U4YWrSnZ2dnUVZ7qadnZ2d@bt.com>
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 

[toc] | [standalone]


Back to top | Article view | comp.programming


csiph-web