-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
256ea1a
commit dc0b586
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace FSharpPlus | ||
|
||
/// Additional operations on Tuple (,) | ||
[<RequireQualifiedAccess>] | ||
module Tuple2 = | ||
let mapItem1 f (x, y) = (f x, y) | ||
let mapItem2 f (x, y) = (x, f y) | ||
|
||
/// Additional operations on Tuple (,,) | ||
[<RequireQualifiedAccess>] | ||
module Tuple3 = | ||
let mapItem1 f (x, y, z) = (f x, y, z) | ||
let mapItem2 f (x, y, z) = (x, f y, z) | ||
let mapItem3 f (x, y, z) = (x, y, f z) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters