C function in metaTalk?
Wouter Abraham
wouter.abraham at pi.be
Sun Mar 16 16:30:01 EST 2003
> Re:C function in metaTalk?
>
> * From: Dr. John R. Vokey
> * Subject: Re:C function in metaTalk?
> * Date: Sat, 15 Mar 2003 20:06:54 -0800
>
> On Saturday, March 15, 2003, at 10:03 AM, on [EMAIL PROTECTED], Wouter
> Abraham wrote:
>
>
> Hi Eric,
>
> Something like this? :
>
..... snip
>
> Unfortunately, this function does not return all the different sets of
> the letters as input. If the input is "abc", for example, it returns:
> a
> ab
> abc
> b
> bc
> c
>
> but misses "bc". The missed sets are even more obvious with "abcd" as
> input:
>
> a
> ab
> abc
> abcd
> b
> bc
> bcd
> c
> cd
> d
>
>
> In general, there are 2^k-1 possible sets, where k=the number of
> letters. For 4 letters, there should be 15 sets, not the 10 shown > here.
> --
> John R. Vokey, Ph.D. |\ _,,,---,,_
> Professor /,`.-'`' -. ;-;;,_
> Department of Psychology and Neuroscience |,4- ) )-,_. ,\ ( `'-'
> University of Lethbridge '---''(_/--' `-'\_)
> _______________________________________________
Hallo mr J. R. Vokey,
I appologize if I misread the original question :
> * From: eric . allen . engle
> * Subject: C function in metaTalk?
> * Date: Thu, 13 Mar 2003 05:09:52 -0800
>
> I'm trying to translate the following C functions into
> hypertalk.
> If done properly they take as input a string, say ABC
> and then
> permutate it into
> a
> a b
> a b c
> b
> b c
> c
>
> UGLY C***************************************
>
And please elucidate on :
>
> Unfortunately, this function does not return all the different sets of
> the letters as input. If the input is "abc", for example, it returns:
> a
> ab
> abc
> b
> bc
> c
>
> but misses "bc". The missed sets are even more obvious with "abcd" as
> input:
>
Have a nice evening,
WA
More information about the metacard
mailing list