RosettaCodeData/Task/Anagrams/Oforth/anagrams.oforth
2018-06-22 20:57:24 +00:00

11 lines
232 B
Text

import: mapping
import: collect
import: quicksort
: anagrams
| m |
"unixdict.txt" File new groupBy( #sort )
dup sortBy( #[ second size] ) last second size ->m
filter( #[ second size m == ] )
apply ( #[ second .cr ] )
;