Post History
Ruby, 55 bytes ->a{[a.split,a.tr($/,''),a.gsub(/[ ]/,'')].map &:size} Try it online! split removes all whitespace, but lines doesn't for some reason. Would've been useful in place o...
Answer
#1: Initial revision
# [Ruby], 55 bytes <!-- language-all: lang-ruby --> ->a{[a.split,a.tr($/,''),a.gsub(/[ ]/,'')].map &:size} [Try it online!][TIO-kq6787xc] [Ruby]: https://www.ruby-lang.org/ [TIO-kq6787xc]: https://tio.run/##KypNqvyfZvtf1y6xOjpRr7ggJ7NEJ1GvpEhDRV9HXV0TyE4vLk3S0I9W4IoFi8Tq5SYWKKhZFWdWpdb@L1BIi1bySM3JyVcozy/KSVFSiOWCiBnn5BgoKJQbFBkiCYIVxuTFlKAqBooAIZyroKAAYv8HAA "Ruby – Try It Online" `split` removes all whitespace, but `lines` doesn't for some reason. Would've been useful in place of the `tr`.