[Cook] very stupid question

Peter Miller peterm at platypus.net
Mon Feb 10 08:24:56 EST 2003


You ned to write the function.

function rev = {
        local result = ;
        local var = ;
        loop var = [arg]
        {
                result = [var] [result];
        }
        return [result];
}

> -----Original Message-----
> From: Aryeh M. Friedman [mailto:aryeh at m-net.arbornet.org]
> Sent: Sunday, February 09, 2003 9:22 PM
> To: cook-users at auug.org.au
> Subject: [Cook] very stupid question
> 
> 
> 
> How do I reverse the order of words in a word list.  Namely if I have
> say "bar ack foo" I want to do something like [rev bar ack 
> foo] and get
> "foo ack bar" out.  Am I missing something obvious here or do 
> I need to
> write the func?
> 
> 	--Aryeh
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users
> 



More information about the Cook-users mailing list