termify

open override fun termify(value: Any?): Term

Converts value to a Term: returns it unchanged if it already is one, delegates to TermConvertible.toTerm if it is a TermConvertible, otherwise dispatches to the converters registered via handleType (exact runtime type first, then the first registered supertype value is an instance of).

Throws

if value is null, or no registered converter applies to it.