Qit


Reflection Module

Provides utilities for reflection

Functions and values

Function or value Description

decomposeFSharpFunctionType t

Full Usage: decomposeFSharpFunctionType t

Parameters:
    t : Type - The F# function type to decompose.

Returns: Type list * Type A tuple where the first element is a list of argument types and the second element is the return type.

Decomposes an F# function type into its argument types and return type. This function recursively traverses the input type, accumulating argument types in a list. When it encounters a type that is not a function, it treats it as the return type.

t : Type

The F# function type to decompose.

Returns: Type list * Type

A tuple where the first element is a list of argument types and the second element is the return type.

typeToString t

Full Usage: typeToString t

Parameters:
    t : Type - Target Type

Returns: string

Pretty print type name

t : Type

Target Type

Returns: string