Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The best ever MSDN help page

The best ever MSDN help page

Scheduled Pinned Locked Moved The Lounge
phpvisual-studiocomhelp
31 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L leppie

    Basically it lets you make curried functions (functions with 1 free variable). So imagine you have foo(a,b). Now you can say bar(b) = foo(1,b). And call bar(x), and foo(1,x) gets executed.

    xacc.ide - now with TabsToSpaces support
    IronScheme - 1.0 alpha 4 out now (27 May 2008)

    U Offline
    U Offline
    User of Users Group
    wrote on last edited by
    #22

    Not sure what you're trying to do with it again but I think people are doing that without explicit CreateDelegate (should be "new delegate" construct generated by compiler) or whatever it was along the shorthand lines of: public static Func< T, Func<U, Z>> Curry<T, U, Z>(Func<T, U, Z> fn) { return new Func<Func<T, U, Z>, Func<T, Func<U, Z>>>( f => x => y => f(x, y))(fn); } if that makes any sense. Probably not what you want but you can split it up and use extension methods. It doesn't look good to me, because it is pure C# unreadable :)

    L 1 Reply Last reply
    0
    • U User of Users Group

      Not sure what you're trying to do with it again but I think people are doing that without explicit CreateDelegate (should be "new delegate" construct generated by compiler) or whatever it was along the shorthand lines of: public static Func< T, Func<U, Z>> Curry<T, U, Z>(Func<T, U, Z> fn) { return new Func<Func<T, U, Z>, Func<T, Func<U, Z>>>( f => x => y => f(x, y))(fn); } if that makes any sense. Probably not what you want but you can split it up and use extension methods. It doesn't look good to me, because it is pure C# unreadable :)

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #23

      That is exactly what I am saying :) But this way allows you to do it to languages that does not support that compiler construct, or programatically.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      1 Reply Last reply
      0
      • D Dan Neely

        Vincent Curry wrote:

        Maybe we should have a new rule for posting in the Lounge, as in all posts should be sarcastic?

        That's an utterly brillant idea.

        You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

        S Offline
        S Offline
        SimonRigby
        wrote on last edited by
        #24

        dan neely wrote:

        That's an utterly brillant idea.

        OK was that sarcasm? :)

        The only thing unpredictable about me is just how predictable I'm going to be.

        A 1 Reply Last reply
        0
        • C Christopher Duncan

          leppie wrote:

          I meant it as a compliment.

          That's the part I didn't get. :) I've become so accustomed to the incredibly poor quality of documentation coming from MS these days that I just assumed it was a well deserved snarky commentary. Quality documentation from MSDN - who knew?

          Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

          J Offline
          J Offline
          JamminJimE
          wrote on last edited by
          #25

          Wow! It's almost like a bigfoot sighting or UFO encounter (except this time we DIDN'T get probed)! You know, they are going to read these posts and IMMEDIATELY take down that page. Everyone, QUICK!!! Save that HTML to your local machine. That way we have proof!! hehehehe :laugh:

          JamminJimE Microsoft Certified Application Developer
          Why are we still calling it Common Sense when it's just not that common?

          1 Reply Last reply
          0
          • G Gary Wheeler

            I'm middle-aged. My switch atrophied and fell off years ago.

            Software Zen: delete this;

            M Offline
            M Offline
            macu
            wrote on last edited by
            #26

            You can get that seen to these days you know.

            G 1 Reply Last reply
            0
            • M macu

              You can get that seen to these days you know.

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #27

              Yes, but the prosthetics are so ... unsatisfying.

              Software Zen: delete this;

              M 1 Reply Last reply
              0
              • G Gary Wheeler

                Yes, but the prosthetics are so ... unsatisfying.

                Software Zen: delete this;

                M Offline
                M Offline
                macu
                wrote on last edited by
                #28

                Well isn't everything at this age... [sigh]

                1 Reply Last reply
                0
                • L leppie

                  Basically it lets you make curried functions (functions with 1 free variable). So imagine you have foo(a,b). Now you can say bar(b) = foo(1,b). And call bar(x), and foo(1,x) gets executed.

                  xacc.ide - now with TabsToSpaces support
                  IronScheme - 1.0 alpha 4 out now (27 May 2008)

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #29

                  <Homer_sound> Hmmm.... Curry... </Homer_sound>

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • S SimonRigby

                    dan neely wrote:

                    That's an utterly brillant idea.

                    OK was that sarcasm? :)

                    The only thing unpredictable about me is just how predictable I'm going to be.

                    A Offline
                    A Offline
                    allodoxaphobia
                    wrote on last edited by
                    #30

                    you catch on quickly

                    S 1 Reply Last reply
                    0
                    • A allodoxaphobia

                      you catch on quickly

                      S Offline
                      S Offline
                      SimonRigby
                      wrote on last edited by
                      #31

                      I try :)

                      The only thing unpredictable about me is just how predictable I'm going to be.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups