Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. Adrian Lang Adrian Lang Haskell

    Is there a specific name in !haskell for leaving out args in the function definition (like `d = map ((*) 2)` vs `d xs = map ((*) 2) xs`)?

    Thursday, 17-Nov-11 08:31:12 UTC from web
    • Mekeor Melire Mekeor Melire Haskell

      yes: it's called "pointless" or "pointfree" notation.

      Saturday, 21-Jan-12 19:17:28 UTC
    • Adrian Lang Adrian Lang Haskell , Mekeor Melire

      Great, thanks! I always thought pointfree was about the (.), how stupid :)

      Saturday, 21-Jan-12 19:25:17 UTC
    • Mike Linksvayer Mike Linksvayer Haskell

      @adrianlang http://www.haskell.org/haskellwiki/Pointfree#But_pointfree_has_more_points.21 explains. points=values in topology lingo.

      Saturday, 21-Jan-12 22:12:52 UTC
    • dno dno Haskell

      This is also called Eta reduction or Eta conversion http://ur1.ca/8c294

      about a year ago
    • Fábio Roberto Teodoro Fábio Roberto Teodoro Haskell

      I call it "partial aplication" or "currying". Am I wrong?

      about a year ago
    • dno dno Haskell , Fábio Roberto Teodoro

      @frt Yes, can call this partial application as well. Consider this function: (\x -> 1 + x) :: Num a => a -> a

      about a year ago
    • dno dno Haskell , Fábio Roberto Teodoro

      @frt Through eta reduc, we can get rid of the x on both sides, leaving (1 +) :: Num a => a -> a, same function, partially applying 1 to (+)

      about a year ago
    • Remote profile options...
      Kevin Granade Kevin Granade dno

      @dno Thanks for posting this, I've butted my head against currying several times, but this explanation finally made it clear.

      about a year ago
    • dno dno Haskell

      Something happened to my post, not always showing for me in this convo. That link about currying again: http://ur1.ca/8p3m2

      about a year ago

Site notice

Identi.ca is converting to pump.io on 1 June 2013

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by E14N. It runs the StatusNet microblogging software, version 1.1.0-release, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal