Changes between Initial Version and Version 1 of DataStructures


Ignore:
Timestamp:
Apr 1, 2012, 2:37:14 AM (10 years ago)
Author:
schiptsov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataStructures

    v1 v1  
     1use annotations for the compiler to choice appropriate built-in primitives.
     2
     3cons:
     4{{{
     5(a . b)
     6}}}
     7list (could be annotated as a set, one-dimension array, etc)
     8{{{
     9(1 "two" 3 (4 5))
     10
     11(1 . ("two" . (3 . (4 . ((5 . nil) nil))))
     12}}}
     13vecror:
     14{{{
     15((1)
     16 (2)
     17 (3))
     18}}}
     19matrix:
     20{{{
     21((1 2 3)
     22 (3 4 5)
     23 (6 7 8))
     24}}}
     25associative array:
     26{{{
     27(("a" . 1)
     28 ("b" . 2)
     29 ("c" . '(1 2 3)))
     30}}}