Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

speaking of painful programming languages

I was googling for an image visually representing what "fold" does (the current homework in my programming languages class involves implementing a fold-like function and the students are hardly comfortable with induction/recursion, let alone functions as parameters, polymorphism, etc.) and I came across this page.

They define a numerical integration function, first in Haskell and then in XSLT. The Haskell is five lines near the beginning. To see the XSLT, scroll down a few pages: it's on a colored background so you won't miss it.
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment