Please consider this example where I save a
map! to a file and want to load it back and access its keys and values. Its keys are hashes (INTEGER!, calculated by
checksum) and its values are blocks:
Rebol  bl1: make object! [ name: "first" age: 42 ] bl2: make bl1  bl2/name: "second" bl2/age: 30 hash1: checksum to-binary to-string bl1 hash2: checksum to-binary to-string bl2 m1: make map!  repend m1 [hash1 bl1] repend m1 [hash2 bl2] save %./map_example.ls m1 m2: do load %./map_example.ls probe join "m2: " type? m2
The file %map_example.ls consists of:
make map! [ 2749161 make object! [ name: "first" age: 42 ] 4111405 make object! [ name: "second" age: 30 ] ]
How can I read the
map! back to access its keys and values that are objects?
foreach a way to go?