A simple puzzle
goran.krampe at bluefish.se
goran.krampe at bluefish.se
Tue Sep 9 13:23:20 UTC 2003
Tim Olson <tim at io.com> wrote:
> On Tuesday, September 9, 2003, at 04:03 AM, ducasse wrote:
>
> > col := {337 at 314 . 327 at 274 . 320 at 237}.
> > (2 * 400 at 0) - col
> > -> this fails :(
Well, how about:
| col |
col := {337 at 314 . 327 at 274 . 320 at 237}.
col * (-1 at 1) + (2*400 at 0).
=> #(463 at 314 473 at 274 480 at 237)
Still perhaps not very clean nor better than Tim's code, not sure what
you really want.
regard, Göran
More information about the Squeak-dev
mailing list
|