Hello, I'm very new to lisp and have been an assembly, C,C++ programmer embedded guy for most my life.I'm struggling to diagram and add comments on how this utility(below) works as my learning pointthen convert it to C. It's a "Clear Duplicates" utility from CAD programs that would be useful for mycad drawings as I convert them to CNC paths.

Does anyone have some moments to spare to guide me on this? I appreciate it. -Lee

I know this is one of those roll your eyes at the newbie questions, but Lisp is really odd to me so far( but I see its power ) much like java string handling far superior than normal C++ w/o adding code. I will also be willing to paypal a giftcard to anyonewho helps as my appreciation.

I also realize now that his is a very AutoCad Lisp syntax example. I found a nice Dos help program that defines well those commands.davidbethel<dot>com LispHelp

I've been search/replacing functions for a readable(no code) version to get a feel for the flow. i.e "lambda (x)-->AnonFunction(x)"here's that so far.

//NOTES: //lambda(AnonFunction) is the symbol for an anonymous function, a function without a name. //mapcar is a function that calls its first argument with each element of its second argument, in turn. The second argument must be a sequence.

I never used CAD Lisp, so, sorry, I won't be able to help much here. Just saying that it's certainly not because you are new to the forum/language - this is just a forum with not much traffic, unfortunately.Nevertheless, CAD Lisp has many things in common with other Lisps - so you could have better chances asking more particular questions about functions or constructions that you don't understand - if they will so happen to be a commonplace in other Lisps, then you have a better chance of getting a reply.For example, mapcar is a function used in many other Lisps, while AnonFunction seems to be a CAD Lisp citizen only.As I've absolutely no clue about how CAD Lisp works, these are things I'd try, but I can't promise they'll work:You probably have some kind of interactive shell where you run the script (or otherwise you have a way to evaluate bits of it and see the output). There is an idiomatic (describe 'symbol-name) function that will show you short info about the symbol called "symbol-name". It looks like in CAD Lisp they use double quote instead of tick - so I'd try (describe "symbolName) - because it looks more "CAD-ish".