@mcc @kojack uiua solves this pretty elegantly with its more idiomatic ways of writing it and also by coloring syntax based on word arity