ExtraTopLevelOperators.( ~XXX )<'T> Function (F#)

Special prefix operator for splicing typed expressions into quotation holes.

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

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

// Signature:
( ~% ) : Expr<'T> -> 'T

// Usage:
% expression


  • expression
    Type: Expr<'T>

    The expression to splice into the quotation hole.

Return Value

The result of the expression.


This function is named SpliceExpression in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.

This operator is designed to be used within a quotation. Within a quotation, it is often necessary to insert an expression from your program. The term quotation hole means a position within a quotation where an expression may be inserted. For more information on quotations and examples of using this operator, see Code Quotations (F#).


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


Supported in: 3

See Also


Core.ExtraTopLevelOperators Module (F#)

Microsoft.FSharp.Core Namespace (F#)