SpecializationBundleProperties.Bundle<T> Method

Definition

[Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 1 })]
public static System.Collections.Generic.Dictionary<Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType>>,System.Collections.Immutable.ImmutableDictionary<Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind,T>> Bundle<T> (Func<T,Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType>>> getTypeArgs, Func<T,Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind> getKind, System.Collections.Generic.IEnumerable<T> specs);
[<Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 1 })>]
static member Bundle : Func<'T, Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType>>> * Func<'T, Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind> -> seq<'T> -> System.Collections.Generic.Dictionary<Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType>>, System.Collections.Immutable.ImmutableDictionary<Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind, 'T>>
Public Shared Function Bundle(Of T) (getTypeArgs As Func(Of T, QsNullable(Of ImmutableArray(Of ResolvedType))), getKind As Func(Of T, QsSpecializationKind), specs As IEnumerable(Of T)) As Dictionary(Of QsNullable(Of ImmutableArray(Of ResolvedType)), ImmutableDictionary(Of QsSpecializationKind, T))

Type Parameters

T

Parameters

specs
IEnumerable<T>

Returns

Dictionary<QsNullable<ImmutableArray<ResolvedType>>,ImmutableDictionary<QsSpecializationKind,T>>
Attributes
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute

Applies to