Hi,
> From: <[EMAIL PROTECTED]>
> > >> probe find/only reverse_lookup :e ; The answer:
> > [[] "a" ["added to the series"] "b" [] "c"]
> > == [[] "a" ["added to the series"] "b" [] "c"]
> >
>
> Thanks, but no - I tried that too. I wanted this to return [[]
"c"] since
> that was what "e" was referring to.
>
>
So, you needed a function sfind?
sfind: func [
{finds the same value as a given one in a given series}
series [series!]
value [any-type!]
] [
while [not tail? :series] [
if same? first :series get/any 'value [
return :series
]
series: next :series
]
none
]
>> probe sfind reverse_lookup :e ; The answer:
[[] "c"]
== [[] "c"]
Regards
Ladislav