Learn how to use collection functions such as Array.map to perform mapping and summarization operations on arrays.
- [Narrator] Next we're going to look at mapping.…And mapping operations kind of generally in mathematics,…are the process of taking a set of items,…doing the same thing to each item,…and then returning a set of the same size.…So you might take a set of positions in space…and add a certain amount to every X distance,…and then you'd end up with a different set of positions,…each one of them a certain amount away…from the first position,…in fact that's exactly what we're going to do.…But we're going to be recapping first just…to make sure we fully understand what's going on here.…
On line 56, this is the function we're going to look at.…Then we're going to analyze that function quite carefully…in terms of its signature, which is basically the top line…before we go into the guts of what it does.…So, you already know we declare it with let,…and then we have a name for it called MoveItems,…and it takes three arguments, deltaX, deltaY,…and a list of items to move.…But as you probably noticed, if we go really right…
- Defining values and calling functions in F#
- Defining and identifying discriminated unions
- Working with if-else expressions
- Writing unit test
- Using type providers to access data
- Analyzing data with collection functions
- Plotting data using the R type provider
- Using railway-oriented programming to handle errors
- Integrating with Twitter
- Deploying an F# application to Azure
Skill Level Intermediate
Visual Studio Essential Training: 05 Code Editorswith Walt Ritscher3h 25m Intermediate
1. Get Started with F#
2. Build a Simple Parser with Unit Testing
3. Use F# CSV Type Provider to Get Data
4. Analyze Data with F# Collection Functions
5. Use RStats Provider and ggplot2 to Plot Data
6. Use BoxKite with Twitter
7. Deploy a Working Bot
Next steps1m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.