Share via


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

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

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

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

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

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

Parameters

  • arg1
    Type: 'T1

    The first argument.

  • arg2
    Type: 'T2

    The second argument.

  • arg3
    Type: 'T3

    The third argument.

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

    The function.

Return Value

The function result.

Example

The following example demonstrates the use of the |||> operator.

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

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

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Core.Operators Module (F#)

Microsoft.FSharp.Core Namespace (F#)