A simple puzzle

ducasse ducasse at iam.unibe.ch
Tue Sep 9 11:48:54 UTC 2003


On Mardi, sep 9, 2003, at 12:52 Europe/Zurich, Tim Olson 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 :(
>
> How about separating the x and y components by multiplying by (1 at 0) 
> and (0 at 1), then recombining with "+" e.g.:
>
> ((2 * 400 @ 0) - col) * (1 at 0) + (col * (0 at 1))
>
> Not very intention-revealing, though.

:) right I think that for beginner the block solution is better.
I was stupid I tried x and did not think about * 0 at 1

This makes me think about APL and FScript that have a powerful notation.

Thanks stef

>
> 	-- Tim Olson
>
>



More information about the Squeak-dev mailing list