SelectByFoldingOverExpressions.StatementTransformation<TSelector> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The given function for creating a new subselector is expected to initialize a new internal state with the same configurations as the one given upon construction. Upon initialization, the FoldResult of the internal state should be set to the specified seed rather than the FoldResult of the given constructor argument.
public StatementTransformation (Func<Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.TransformationState,TSelector> createSelector, Microsoft.Quantum.QsCompiler.Transformations.Core.SyntaxTreeTransformation<Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.TransformationState> parent);
new Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.StatementTransformation<'Selector (requires 'Selector :> Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions)> : Func<Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.TransformationState, 'Selector (requires 'Selector :> Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions)> * Microsoft.Quantum.QsCompiler.Transformations.Core.SyntaxTreeTransformation<Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.TransformationState> -> Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions.StatementTransformation<'Selector (requires 'Selector :> Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions)>
Public Sub New (createSelector As Func(Of SelectByFoldingOverExpressions.TransformationState, TSelector), parent As SyntaxTreeTransformation(Of SelectByFoldingOverExpressions.TransformationState))
Parameters
- createSelector
- Func<SelectByFoldingOverExpressions.TransformationState,TSelector>