Tag: haskell

  1. const id 1 2

    posted on December 15, 2007 - tagged as: haskell

    While playing around with the 99 problems in Haskell, I came across this function const that takes two arguments and returns the first without ever evaluating the second. For example:

    const 1 2
    

    returns 1. Now that is straightforward enough, but then I noticed that:

    const id 1 2
    

    returns ...

    read the whole post »

social

tags