Some basic lisp functions -trying to teach myself the basics

Discussion of Common Lisp
arturoVidal
Posts: 4
Joined: Fri Sep 06, 2013 4:54 am

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

Post by 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

ykm
Posts: 5
Joined: Tue Sep 18, 2012 11:52 pm

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

Post by 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)

Goheeca
Posts: 271
Joined: Thu May 10, 2012 12:54 pm
Contact:

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

Post by 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). Temporary mirrors of aferomentioned: CLHS and a dark version.

Post Reply