Question about arrays.

Ned Konz squeak-dev at lists.squeakfoundation.org
Fri Sep 6 22:09:59 UTC 2002


On Friday 06 September 2002 02:57 pm, Francisco A. Lizarralde wrote:
> Hi,
>
> I have an Array with Fractions like this
>
> #((3/4) (2/3))
>
> If I inspect (3/4) I look that it is a Fraction.
>
> If I inspect the former Array, I look that it has two elements, but
> when I inspect the first element of it, I look that it is another
> Array with tree elements, like this
>
> #( 3 #/ 4) not a Fraction.
>
> Could anybody tell me, how I can solve this ?

You can use the curly brackets:

{ 3/4 . 2/3 }


--=20
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list