MfmUtils

object MfmUtils

Functions

Link copied to clipboard
fun extract(nodes: Iterable<IMfmNode>, predicate: (IMfmNode) -> Boolean): List<IMfmNode>

Inspects the MfmNode tree and returns as an array the nodes that match the conditions of the predicate function.

Link copied to clipboard
fun inspect(node: IMfmNode, action: (IMfmNode) -> Unit)
fun inspect(nodes: Iterable<IMfmNode>, action: (IMfmNode) -> Unit)

Inspects the MfmNode tree.

Link copied to clipboard

Generates MFM string from the MfmNode tree.