See: https://libsemigroups.github.io/libsemigroups/group__ranges__group.html for the equivalent `libsemigroups` doc.