p73 Introduction to newLISP

For the Compleat Fan
Locked
dukester
Posts: 115
Joined: Tue May 08, 2007 1:06 pm
Location: Alberta, Canada

p73 Introduction to newLISP

Post by dukester »

p73's topic is "6 Apply and map: applying functions to lists"

In part it says:

Since we're holding the data in a symbol called data, we could try this:

(add data)
value expected in function add : data

but no, this doesn't work, because add wants numbers to add, and neither does this:

(add data)
value expected in function add : data


The two examples above seem identical to me. What did I miss?
--
dukester

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

You didn't miss anything - but I missed out an apostrophe in the second example, showing that not evaluating the list didn't work either...

Actually I spotted that error the other day, while doing some proofreading (that HTML version, you know...). :-)

Thanks Dukester!

dukester
Posts: 115
Joined: Tue May 08, 2007 1:06 pm
Location: Alberta, Canada

Post by dukester »

cormullion wrote:You didn't miss anything - but I missed out an apostrophe in the second example, showing that not evaluating the list didn't work either...

Actually I spotted that error the other day, while doing some proofreading (that HTML version, you know...). :-)

Thanks Dukester!
Sure! I should have guessed!! Thanks...

Locked