Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #1916 > unrolled thread
| Started by | "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> |
|---|---|
| First post | 2012-07-07 10:05 +0100 |
| Last post | 2012-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.
Re: repeating something n times "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-07-07 10:05 +0100
| From | "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> |
|---|---|
| Date | 2012-07-07 10:05 +0100 |
| Subject | Re: 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
Back to top | Article view | comp.programming
csiph-web