Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Just Another Godel, Escher, Bach hacker

by FoxtrotUniform (Prior)
on Jun 25, 2004 at 23:01 UTC ( #369762=note: print w/ replies, xml ) Need Help??


in reply to Re: Just Another Godel, Escher, Bach hacker
in thread Just Another Godel, Escher, Bach hacker

Nice summary! (readmore is spoily)

You missed a subtlety about godel, though. What it's actually doing is nesting anonymous calls to the sub returned by escher, which do the extraction from @U. The whole thing returns a sub, which calls more subs nested in the closure, and so on, and so on; that's the part I think is cool.

godel is equivalent to foldr in Language::Functional (or Haskell, for that matter); escher is the combining function, and sub {"\n"} is the start value.

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me
% man 3 strfry


Comment on Re^2: Just Another Godel, Escher, Bach hacker
Select or Download Code
Re^3: Just Another Godel, Escher, Bach hacker
by diotalevi (Canon) on Jun 26, 2004 at 04:53 UTC

    So if perl were Haskell, what else would you have here?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-07-29 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (220 votes), past polls