Table of contents
TOC
Collapse the table of content
Expand the table of content

Operators.( <||| )<'T1,'T2,'T3,'U> Function (F#)

Den Delimarsky|Last Updated: 7/19/2016
|
1 Contributor

Apply a function to three values, the values being a triple on the right, the function on the left

Namespace/Module Path: Microsoft.FSharp.Core.Operators

Assembly: FSharp.Core (in FSharp.Core.dll)

Syntax

// Signature:
( <||| ) : ('T1 -> 'T2 -> 'T3 -> 'U) -> 'T1 * 'T2 * 'T3 -> 'U

// Usage:
func <||| (arg1, arg2, arg3)

Parameters

func Type: 'T1 -> 'T2 -> 'T3 -> 'U

The function.

arg1 Type: 'T1

The first argument.

arg2 Type: 'T2

The second argument.

arg3 Type: 'T3

The third argument.

Return Value

The function result.

Example

The following code demonstrates the use of the <||| operator.


     let append4 string1 string2 string3 = string1 + "." + string2 + "." + string3

     // The <||| operator
     let result3 = append4 <||| ("abc", "def", "ghi")
     printfn "append4 <||| (\"abc\", \"def\", \"ghi\") gives  %A" result3

Output:

append4 &lt;||| ("abc", "def", "ghi") gives  "abc.def.ghi"

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Core.Operators Module (F#)

Microsoft.FSharp.Core Namespace (F#)

© 2017 Microsoft