Lee Roy Posted June 20, 2012 Posted June 20, 2012 I know my codes are never as efficient as they could be, "for each" being a prime example. But I post them knowing that others more knowledgeable than I will do something similar, then I can glean knowledge off their iterations to further my own knowledge in the language. Luckily, we have some very knowledgeable guys here at CADTutor! Quote
BlackBox Posted June 20, 2012 Posted June 20, 2012 Luckily, we have some very knowledgeable guys here at CADTutor! I couldn't agree more, I owe much of my own progress at coding to many CADTutor members... One, extremely knowledgeable bloke, and fellow whovian, comes to mind. Quote
Lee Mac Posted June 20, 2012 Posted June 20, 2012 Thank you for supplying the explanation Renderman, very informative. One minor niggle is that the color map in my code is not a list of groups pairs (as is created by supplying the 'cons' function with two atoms), but rather a list of two items, equivalent to: (list (list <old color> <new color>) ... (list <old color> <new color>) ) But that's a minor correction and maybe me being petty. I only used this construction over the list of dotted pairs so that the user did not have to worry about or be confused by supplying the 'dot' between the two colours. Happy to help guys! Quote
BlackBox Posted June 20, 2012 Posted June 20, 2012 Corrections always welcomed; admittedly, I should have looked at your code more closely before posting. Purely a mistake on my part, as I was just using grouped pairs in a coding effort here. I'll correct my post for others that may stumble upon this thread, my friend. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.