|
|
Orchid XP v7 wrote:
> Yeah, true. And that's the kind of trick Haskell's compiler is likely to
> pull off too...
I thought it was pretty cool that the latest Erlang compilers will see
code like
map(F, [H|T]) -> [F(H)|map(F,T)];
map(F, []) -> [].
and turn it into the same code you'd get with an auxiliary accumulator
and a call to "reverse" at the end.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|