Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Hub FS
Full List

Browse by Tags

All Tags » Lambda   (RSS)
Why is LINQ absent from debugger windows?
As the owner of the VB.Net portion of the overall debugging experience, I frequently hear the request from customers to add LINQ support into the Watch / Immediate and Locals window. Virtually every other type of expression is available in the debugger Read More...

Posted Wednesday, August 26, 2009 8:00 AM by Jared Parsons | 9 Comments

Filed under: , , , , ,

PowerShell LINQ: Take-Count and Take-While
The Take pair of functions are very similar to the Skip functions .  The Take expression does essentially the opposite of the Skip functions.  Skip is useful for getting elements further down the pipeline.  Take is used for getting elements Read More...

Posted Friday, January 16, 2009 8:00 AM by Jared Parsons | 2 Comments

Filed under: , ,

PowerShell LINQ: Skip-While
Next up in the PowerShell LINQ series is SkipWhile .  This LINQ function takes an enumerable instance and a predicate.  The function will skip the elements in the enumerable while the predicate is true.  The argument to the predicate is Read More...

Posted Wednesday, January 14, 2009 8:00 AM by Jared Parsons | 2 Comments

Filed under: , ,

Script Blocks and Closures (or lack there of)
Script blocks are a concise way of representing an expression or statement group in Powershell.  It’s the C#/F#/VB lambda equivalent for PowerShell.  One difference between C#/F#/VB lambda expressions and a scriptblock is the lack of lexical Read More...

Posted Thursday, January 08, 2009 8:00 AM by Jared Parsons | 0 Comments

Filed under: , ,

Script Blocks and Arguments: Figuring it out for myself … again
Script blocks are a powershell construct for storing an expression or group of statements inside an expression.  It’s the equivalent of a C#/F#/VB Lamba expression.  Recently I needed to use a script block but found I had forgotten how to read Read More...

Posted Wednesday, January 07, 2009 8:00 AM by Jared Parsons | 4 Comments

Filed under: ,

Switching on Types
One action I find frustrating in C# is where a particular action needs to be taken based off of the type of a particular object. Ideally I would like to solve this with a switch statement but switch statements only support constant expressions in C# so Read More...

Posted Friday, May 16, 2008 8:00 AM by Jared Parsons | 9 Comments

SynchronizationContext and Higher Order Functions
It's often useful to ensure that actions occur on specific threads, in particular event handlers.  Take Windows Forms for instance where all operations on a Control must occur on the thread it was created on.  Typically this is not a problem Read More...

Posted Sunday, February 24, 2008 4:42 AM by Jared Parsons | 1 Comments

C# Lambda Type Inference
One of the limitations of C# type inference is that you cannot use it to infer the type of a lambda expression. For example, the following code will not compile var f = () => 4; Normally this is not too much of an issue because you can just explicitly Read More...

Posted Friday, December 14, 2007 12:41 PM by Jared Parsons | 1 Comments

Lambda Unexpected Behavior
One item you strive to avoid when you design and implement a feature is unexpected behavior.  Unfortunately there is one case we couldn't avoid with Lambda's in VB9.  I just ran into the this problem when coding up a handler.  I wanted Read More...

Posted Monday, November 19, 2007 10:38 PM by Jared Parsons | 1 Comments

Filed under: , ,

Page view tracker