Some basic lisp functions -trying to teach myself the basics

Discussion of Common Lisp

Re: Some basic lisp functions -trying to teach myself the ba

Postby arturoVidal » Mon Sep 16, 2013 7:39 am

WOW thanks heaps for your help (both of you ;) )

Finally wrote my static heuristic evaluation function for C4 :D :D :D
arturoVidal
 
Posts: 4
Joined: Fri Sep 06, 2013 4:54 am

Re: Some basic lisp functions -trying to teach myself the ba

Postby ykm » Sun Nov 17, 2013 2:47 am

head about set-differrence?

Code: Select all
CL-USER> (set-difference '(1 2 3 4 5) '(3 4))
(5 2 1)
ykm
 
Posts: 5
Joined: Tue Sep 18, 2012 11:52 pm

Re: Some basic lisp functions -trying to teach myself the ba

Postby Goheeca » Sun Nov 17, 2013 11:31 am

It depends, whether the resulting set should be generated in a stable way.
There is no guarantee that the order of elements in the result will reflect the ordering of the arguments in any particular way. The result list may share cells with, or be eq to, either of list-1 or list-2, if appropriate.

OP didn't answer this.
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version).
User avatar
Goheeca
 
Posts: 214
Joined: Thu May 10, 2012 12:54 pm

Previous

Return to Common Lisp

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests