Anagrams: Difference between revisions

m
Regularize non-standard header markup
m (Regularize non-standard header markup)
Line 1,858:
</pre>
 
== {{header|D}} ==
===Short Functional Version===
<lang d>import std.stdio, std.algorithm, std.string, std.exception, std.file;
Line 2,539:
</pre>
 
== {{header|Fortran}} ==
This program:
<lang fortran>!***************************************************************************************
Line 2,906:
5: elba, bela, bale, able, abel,</pre>
 
== {{header|Factor}} ==
<lang factor> "resource:unixdict.txt" utf8 file-lines
[ [ natural-sort >string ] keep ] { } map>assoc sort-keys
Line 3,509:
</pre>
 
== {{header|Groovy}} ==
This program:
<lang groovy>def words = new URL('http://wiki.puzzlers.org/pub/wordlists/unixdict.txt').text.readLines()
Line 3,526:
</pre>
 
== {{header|Haskell}} ==
<lang haskell>import Data.List
 
Line 3,613:
-></pre>
 
== {{header|J}} ==
If the unixdict file has been retrieved and saved in the current directory (for example, using wget):
<lang j> (#~ a: ~: {:"1) (]/.~ /:~&>) <;._2 ] 1!:1 <'unixdict.txt'
10,327

edits