I have this REBOL script:
REBOL [Title: "Employee list"]
emp-list: [
"Amy" 1
"Bob" 2
"Carrie" 3
]
gui-layout: [ text "click to reveal number" ]
foreach [name id] emp-list [
append gui-layout [
box name [print id]
]
]
view layout gui-layout
Strangely, to me, it makes a window with three Carries which print 3 when clicked. What am I doing wrong here?