Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Monday Puzzle

From: larry:ecotope at: 23-Jul-2001 20:29

Hi all, Here's a puzzle. I made a block named y of length 2 which shows the following behavior:
>> type? y
== block!
>> length? y
== 2
>> y/1
== 0
>> loop 20 [prin [y/1 " "] y: second y] print ""
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 Here's a hint!
>> loop 20 [prin [length? y " "] y: second y] print ""
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 How was the block constructed and what does the MOLD of the block look like? Enjoy -Larry