Author Topic: Episode 23: Functional Programming in C# with Oliver Sturm  (Read 1978 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Episode 23: Functional Programming in C# with Oliver Sturm
« on: December 23, 2008, 06:01:30 PM »
.. just came in on my feed ;
Episode 23: Functional Programming in C# with Oliver Sturm

This looks interesting ...
Code from the interview [ from C#]
Code: [Select]
Func<int,int,int> add = (x,y) => x + y;

Func<int, Func<int,int>> addC2 =
   delegate(int x) {
      return delegate (int y) {
          return x + y;
      }
   };

Func<int, Func<int,int>> addC =
   x => y => x + y;

var add5 = addC(5);

add5(37);

I've had difficulty getting into 'Expert F#' by Syme et al , so I may just wait a bit :)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Episode 23: Functional Programming in C# with Oliver Sturm
« Reply #1 on: December 27, 2008, 09:13:14 PM »

just realised I forgot to add the link
http://deepfriedbytes.com/podcast/episode-23-functional-programming-in-csharp-with-oliver-sturm/

I can't think of a single sensible excuse ... :)

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.