Patterns and Match Expressions in F#
- Posted: Jul 06, 2009 at 7:58 PM
- 37,469 Views
- 9 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this video, programming writer, Gordon Hogenson explains and gives examples of patterns in F# and explains the use of the match expression to control branching based on patterns in data. But first, a disclaimer Gordon wanted to make: “Regrettably, I have not been able to retrain myself yet to use the word value instead of variable. In F#, all values are immutable by default, so it’s not really correct to use the term variable, as I do in the video.” See Part 2 of this video: http://channel9.msdn.com/posts/kmcgrath/Active-Patterns-F/
You can also learn more in the topics Patterns and Match Expressions.
Kathleen McGrath
Visual Studio User Education
http://blogs.msdn.com/kathleen/
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Ok, I'm a great fun of F# as well as IronPython. Besides what he is talking about, i feel his coolness and geeky just because he speaks about F#! Great topic! So cool that he uses glasses!
It is great to have some F# videos that are encoded at the higher resolution, so that one can actually see the syntax.
Having a language that can be run interactivly really helps with trying to demonstrate basic constructs, when you are trying to teach people how to use it.
I thought that this video / interview was well done.
Kathleen has produced several high quality pieces for C9. Check it out: http://channel9.msdn.com/Niners/kmcgrath/
Thank you Kathleen!!!
C
Thats just the new WPF editor with a Vector based text editor
Speaking of patterns and matching, how do you search for "F#" on Channel9? I get "Search term too small"...
Yes I don't like Microsoft naming; it can be hard to search for F#, C#, .NET
You can search for "FSharp" and "CSharp". Videos are also tagged, so that you can easily find all videos created for a certain technology. For example, you can click on the FSharp tag in this post (http://channel9.msdn.com/tags/FSharp/) for F# videos.
Agree. I did never ever see the teacher explaining few lines of code during 20 minutes without saying anything else, than is displayed on the screen.
[SPOILER ALERT]
During this 20 minutes I learn from the teacher, that _ means "wildcard". Everything else is on the VS screen
[/SPOILER ALERT]
With my regards, Kathy: much appreciate your videos, but in this case one JPG wilth codeshot will say exactly the same, what this 20 minutes movie.
Helpful, but a bit rambling and lacked usage examples (eg for the constructQuery, it would be more instructive to see it used with different input data).
Remove this comment
Remove this thread
close