Map
Index
Random
Help
th

Quote: Smalltalk allows a block's variables to take a sequence of values

topics > all references > references t-z > QuoteRef: xlrg8_1981 , p. 46



Topic:
processing a sequence

Quotation Skeleton

Block arguments allow one or more of the … of sending the block the message value, messages … value: messages are assigned to the block arguments … .An example of the use of such a … [ :element ! self process: element] [i.e. each iteration of do: assigns a new value to :element] … [p. 47] As an example, a simple repetition could … | index <- 1. [index < = self] whileTrue: [aBlock value. index <- index + 1]   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: processing a sequence (17 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.