Imagine that I have a long file of Rebol-formatted data, with a million lines, that look something like
REBOL []
[
[employee name: {Tony Romero} salary: $10,203.04]
[employee name: {Marcus "Marco" Marcami} salary: default]
[employee name: {Serena Derella} salary: ($10,000 + $203.04)]
...
[employee name: {Stacey Christie} salary: (10% * $102,030.40)]
]
If the enclosing block wasn't there, I could use LOAD/NEXT
to read through the employee items one at a time (as opposed to parsing the entire file into structured data with LOAD
). Is there any way to do something similar if the enclosing block is there?
What if I wanted to go back to a previously visited item? Could there be a "structural seek"?
Is there a viable database solution that one could use for this kind of desire for Rebol-structured data, which might even permit random access insertions?