circlePts r a b n = map (\x -> (r*cos(x/n*pi)+a, r*sin(x/n*pi)+b, 0.0)) [-n..n]
ringPts o i a b n = concat$map (\(x,y) -> [x,y]) $ zip (circlePts o a b n) (circlePts i a b n)
starPts r x y n = o++i
where
(o,i) = partition (\(x,_) -> odd x)
$zip [1,2..]
$circlePts r x y n
I'm reading http://tinyurl.com/ygrzr7 right now. I don't really have any plans as for what to read later yet, so I might check your book after I'm done with the basics.
Wait, so what if you want to, for instance, say that x is going to y to do z? klama doesn't accept the argument that defines the goal of the travel/movement?
>>308
I laughed far harder than I should have. Sometimes these unfunny jokes totally get me :(
Name:
Anonymous2008-06-18 8:31
There are four engineers travelling in a car -- a mechanical engineer,
a chemical engineer, an electrical engineer, and a computer engineer. The car breaks down.
"Sounds to me as if the pistons have seized. We'll have to strip
down the engine before we can get the car working again", says the
mechanical engineer.
"Well", says the chemical engineer, "it sounded to me as if the fuel
might be contaminated. I think we should clear out the fuel system."
"I thought it might be an grounding problem", says the electrical
engineer, "or maybe a faulty plug lead."
They all turn to the computer scientist, who up to then had said
nothing, and asked "Well, what do you think?"
"I put on my wizard robe and hat. My other car is a cdr." The computer scientist pulls out a cudder from his pocket, and shoves it down the throats of the engineers. "Take that, motherfuckers!!!!"
I prefer the original joke where the Software Engineer suggests pushing the car back up the top of the hill to see if it happens again
Name:
Anonymous2008-06-18 13:38
There are four engineers travelling in a car -- a mechanical engineer, a chemical engineer, an electrical engineer, and a computer scientist. The car breaks down.
"Sounds to me as if the pistons have seized. We'll have to strip
down the engine before we can get the car working again", says the mechanical engineer.
"Well", says the chemical engineer, "it sounded to me as if the fuel might be contaminated. I think we should clear out the fuel system."
"I thought it might be an grounding problem", says the electrical engineer, "or maybe a faulty plug lead."
They all turn to the computer scientist, who up to then had reading his first edition SICP, and asked "Well, what do you think?"
"..."
"Ahem, Dr. Sussman?"
"Why am I reading this book?"
"Uh, I don't know?"
"So that the room will be empty."
"Wait a second, we aren't in a r... !"
And at that time the three engineers were Enlightened.
Name:
Anonymous2008-06-18 13:40
>>314
I can see that you didn't understand the wisdom of the original story.
Name:
Anonymous2008-06-18 13:41
>>315
I can see that you don't understand the process of binding.