params

open fun params(name: String, types: Array<out KType> = typeMap[name]!!): String

Generates the type parameter string (e.g., <Int, String>) for the variable with the given name.

Return

a formatted type parameter string, or an empty string if there are no parameters

Parameters

name

the variable name

types

the type parameters; defaults to those previously registered for name