[REBOL] Re: Find on a nested structure
From: agem:crosswinds at: 12-Apr-2001 13:04
[rebol [title: "funny search"] MyStructure: [ is-is? ["US" ["USA" "English" "Spanish"]] is-is? ["DE" ["Germany" "German"]] is-it? ["NZ" ["New Zealand" "English"]] ] look-for: "DE" found: none is-it?: func [block] [ if look-for = first block [ found: block ] ] do MyStructure ? found ;-) ]