Generate command to be evaluated later
- From: Tomer Arazy <tomerarazy@xxxxxxxxx>
- Date: Sun, 8 Jul 2012 14:57:03 -0700 (PDT)
I want to create a function which will gets to numbers and a variable name and return a command which evaluates which one of them is bigger and set that value to a new variable.
Lets call that function _max
So if I call:
_max(2,3,a)
It should return the following string:
"set a [max 2 3]"
I can do it using really ugly tricks with string map, but I prefer not to if I can avoid it.
This is really simple example so please no specific solutions for this example, since my actual problem is more complicated than this :<
Thanks.
.
- Follow-Ups:
- Re: Generate command to be evaluated later
- From: Prof Craver
- Re: Generate command to be evaluated later
- From: Tomer Arazy
- Re: Generate command to be evaluated later
- Prev by Date: Re: tcldom on debian arm - raspberry pi
- Next by Date: Re: Generate command to be evaluated later
- Previous by thread: tcldom on debian arm - raspberry pi
- Next by thread: Re: Generate command to be evaluated later
- Index(es):
Relevant Pages
|