Patterns and Match Expressions in F#
- Posted: Jul 06, 2009 at 7:58 PM
- 36,513 Views
- 9 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
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 Closed
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
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