print

abstract fun print(prefix: String? = null, predicate: (KoScope) -> String? = null): KoScope

Print the scope.

Return

The original scope.

Parameters

prefix

An optional string to be printed before the scope content. Default is null.

predicate

An optional function that generates the string representation of the scope. If predicate is not provided (default is null), the function uses toString method.