| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#11
| |||
| |||
| On Jan 3, 9:37 pm, Ken Tilton <kennytil...@optonline.net> wrote: > viper-2 wrote: > > On Jan 3, 11:51 am, Tzury Bar Yochay <Afro.Syst...@gmail.com> wrote: > > >>I am starting now learning common lisp. > >>here is a function which meant to return all elements found in list1 > >>which dose not exists on list 2. > > > If you're really just beginning Lisp I believe you should be working > > on becoming comfortable with recursion, before considering iteration. > > Scheme is the dreamy idealistic language for crap like that, CL is for > practical people trying to get work done and the first thing a Lisper > needs to learn after how conses work is to use the right tool for the > job and loop is the right tool for iteration which this example requires. > > Recursion is great fun and should be used only when a task cannot be > completed on one element without the result of that task performed on > subsequent elements. Now, that definitely sounds loopy ;-) agt |
|
#12
| |||
| |||
| On Jan 4, 8:50 am, viper-2 <visio...@mail.infochan.com> wrote: > On Jan 3, 9:37 pm, Ken Tilton <kennytil...@optonline.net> wrote: > > > > > viper-2 wrote: > > > On Jan 3, 11:51 am, Tzury Bar Yochay <Afro.Syst...@gmail.com> wrote: > > > >>I am starting now learning common lisp. > > >>here is a function which meant to return all elements found in list1 > > >>which dose not exists on list 2. > > > > If you're really just beginning Lisp I believe you should be working > > > on becoming comfortable with recursion, before considering iteration. > > > Scheme is the dreamy idealistic language for crap like that, CL is for > > practical people trying to get work done and the first thing a Lisper > > needs to learn after how conses work is to use the right tool for the > > job and loop is the right tool for iteration which this example requires. > > > Recursion is great fun and should be used only when a task cannot be > > completed on one element without the result of that task performed on > > subsequent elements. > > Now, that definitely sounds loopy ;-) > > agt This thread is missing from my profile. Is there sometimes a problem with indexing? agt |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.