[REBOL] Re: Help
From: emekamicro:gm:ail at: 9-Sep-2010 18:48
Hello All,
I have the below solution, but I want something better.
Ismember?: func[my-list start-n n t-element][
first-element: first at my-list start-n
if t-element = first-element [return true]
if start-n = n [return false]
Ismember? my-list ADD start-n 1 n t-element
]
On Thu, Sep 9, 2010 at 6:38 PM, Emeka <emekamicro-gmail.com> wrote:
> Hello All,
>
> Which word would I use for something like this? I have a block [ A B C D] ,
> I would like to do
> Ismember? [A B C D] D comes true because D is in the block already , but
> Ismember?{A B C D] F comes false.
>
> Regards,
> Emeka
>
> --
> *Satajanus Nig. Ltd
>
> *
>
--
*Satajanus Nig. Ltd
*