Search found 226 matches

by edgar-rft
Fri Aug 27, 2010 10:01 am
Forum: Common Lisp
Topic: "Morphing/Warping" of two lists
Replies: 8
Views: 7826

Re: "Morphing/Warping" of two lists

Thanks for the information., I'm semi-familiar with Pure Data (poor man's version of MaxMSP), so reading 'patches' is not very new to me, so far the good news. The bad news is, that in graphical interfaces a myriad of implementation details is hidden to the user, so the 'patch.png' only shows the ba...
by edgar-rft
Fri Aug 27, 2010 2:29 am
Forum: Common Lisp
Topic: "Morphing/Warping" of two lists
Replies: 8
Views: 7826

Re: "Morphing/Warping" of two lists

I'm a musician, not a programmer and my math knowledge is worst than everything. I came to lisp more through the logical part than the mathematical part... Hello and welcome, that's exactly how I myself started Common Lisp programming some years ago. :P I'm not a real professional math artist eithe...
by edgar-rft
Thu Aug 26, 2010 11:37 pm
Forum: The Lounge
Topic: Another question about associate list
Replies: 5
Views: 13134

Re: Another question about associate list

If you see the lists as sets you can use 'set-difference': (defvar *mylist* '((:a a) (:b b) (:c c) (:d d))) (let* ((first-var 'c) (second-var 'd) (third-var 'e) (fourth-var 'f) (varlist (list first-var second-var third-var fourth-var))) (setq *mylist* (set-difference *mylist* varlist :test (lambda (...
by edgar-rft
Thu Aug 26, 2010 10:04 pm
Forum: The Lounge
Topic: How to reset the value of associate list element
Replies: 9
Views: 17151

Re: How to reset the value of associate list element

(car (cdr (car (cdr <list>)))) => (cadadr <list>) The standard way to replace a value in an a-list is the same like Duke already had written above: (rplacd (assoc <key> <a-list>) <new-value>) This is in so far the better solution as you normally do not know the exact position of the (key value) pai...
by edgar-rft
Fri Aug 20, 2010 4:32 am
Forum: Common Lisp
Topic: A really stupid question
Replies: 5
Views: 4554

Re: A really stupid question

Maybe you should take a look at: -> http://en.wikibooks.org/wiki/Common_Lisp/Advanced_topics/Dates_and_Times -> http://cl-cookbook.sourceforge.net/dates_and_times.html This is the way to compute times and dates with standard build-in Common Lisp functions, no loading of libraries required. Should wo...
by edgar-rft
Fri Aug 06, 2010 6:55 am
Forum: Other Dialects
Topic: XLisp Maximum of a list
Replies: 2
Views: 10135

Re: XLisp Maximum of a list

Maybe important to know (if you run across XLisp for the first time) is that there exist several different XLisp versions, which are unfortunately more or less incompatible to each other. The "X" in XLisp stands for "experimental" and that's what XLisp is most about. XLisp 1.x - ...