ditto-lib / live.ditto / DittoMutableDocumentPath / pop

pop

fun pop(): Any?

Pop a value off the end of an array at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an array.

Return
the value popped off from the end of the array.