View Problem

Categorise a list

Given the list [one, two, three, four, five] produce a map {3:[one, two], 4:[four, five], 5:[three]} which sorts elements into map entries based on their length

There are 25 other solutions in additional languages (clojure, cpp, csharp, erlang ...)