function to index a List to a Dict of Nonempty List
nonemptyGroupBy : (a -> comparable) -> List a -> Dict comparable (List.Nonempty.Nonempty a)
nonemptyGroupBy takes a key-fn and a list.
Creates a Dict
which maps the key to a Nonempty list of matching elements.