:: x -> (x, x) package:monoid-subclasses

Splits the argument into its prime prefix and the remaining suffix. Returns Nothing for mempty.
Splits the argument into its prime suffix and the remaining prefix. Returns Nothing for mempty.