Comment Comment by sedro Or more succinctly val num = words.count(_.nonEmpty) parent sedro 3 years ago