transform

Invoke matching transform definition to convert input type(s) to the output type.

If no matching type transform exists, an error will be reported.

Parameters:

No. Type Comments
1 1st user-defined type 1st type of the transformer to be used
2 2nd user-defined type Optional 2nd type of the transformer to be used
Optional n’th type of the transformer to be used

Returns:

user-defined type - Output result

Usages:

  • let o1 = transform< OutputType >( i : InputType )
  • let o2 = transform< OutputType >( a : InputTypeA, b : InputTypeB )