buildCborArray
Builds a DataItem for a CBOR array with the given builder action.
Example usage:
val dataItem = buildCborArray {
add("stuff")
add(42)
addCborArray {
add("foo")
add("bar")
}
addCborMap {
put("a", "foo")
put("b", "bar")
}
}
Content copied to clipboard
Return
the resulting DataItem.
Parameters
builderAction
the builder action.