That takes a list of lists and returns the lists with exactly one maximal element.
M
fails on integers, so if any of the elements of the inputs aren't lists it'll error:
Try it online! (
M
is one of a few builtins in Jelly which doesn't promote integers to arrays, and breaks instead)