uncons

open fun S.uncons(): Pair<A, S>?(source)

Deconstruct an S to its optional first element A and tail S.

Receiver

S structure to uncons into its first element A and tail S.