Training
Module
Store and apply operations on list data in F# - Training
This module covers collections in F#, with a specific focus on lists.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
List.Zip(lists as list) as list
Takes a list of lists, lists
, and returns a list of lists combining items at the same position.
Zips the two simple lists {1, 2} and {3, 4}.
Usage
List.Zip({{1, 2}, {3, 4}})
Output
{
{1, 3},
{2, 4}
}
Zips the two simple lists of different lengths {1, 2} and {3}.
Usage
List.Zip({{1, 2}, {3}})
Output
{
{1, 3},
{2, null}
}
Training
Module
Store and apply operations on list data in F# - Training
This module covers collections in F#, with a specific focus on lists.