On Thu, 16 Apr 2009 13:47:04 -0300
Bruno Deferrari <[email protected]> wrote:
> > On the one hand, "abc" seems to be interpreted as an association
> > with three keys: "abc" keys -> { 0 0 0 }
> > On the other hand, requesting a value for one such key yields
> > something obviously not contained in the association.
>
> 1. Strings and Integers are Sequences (Integers are sequences from 0
> to n-1 and empty for 0)
> 2. Sequences are instances of assoc (to make alists work I guess)
> 3. "abc" is being treated as an alist (alist exampe: { { "key1"
> "value1" } { "key2" "value2" } } )
> 4. being 'CHAR: a' one of the elements of the sequence, and being a
> character an integer, and being integers sequences too, then CHAR: a
> is like { 0 1 2 3 .. 96 } ('CHAR: a' is 97)
> 5. On an alist, the key is the first element of the inner sequence (0
> here, or "key1" on the alist example)
> 6. On an alist, the value is the second element of the inner sequence
> (for 'CHAR: a' or any integer greater than 1 it is 1), thats why you
> are getting 1
>
How wonderfully bizarre!
s.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk