Sequence index with sequences... Why not?!
>>subscript must be an atom
>>(reading an element of a sequnce)
I don't get it. What horrors could possibly justify this? If I could index with
a sequence, I could do all kinds of nifty things with trees and stuff like
that... I was thinking of doing this:
Each node: {ID,KEY,child1,child2,child3,...}
where ID is a sequence containing the index to itself.
!Note: ID[1..len-1]=Parent! Smooth!
Key is whatever data you would like to store.
Child nodes would be appended (as sequences) to the node.
I'm also a bit disturbed by not being able to alter variables from a procedure
or function. A (fully backwards compatible) of fixing this would be to introduce
some kind of 'var' directive. That can't be that tricky, could it?
/Anders
P.s. this is being sent to both the list, and RDS.
--------------------------------------------------------------
Anders Eurenius <c96aes at cs.umu.se> UIN:1453793
Computer Science/Engineering student at the university of Umea
--------------------------------------------------------------
|
Not Categorized, Please Help
|
|