Anagram generator: Difference between revisions

m
Line 252:
 
# input: an array to be extended with an additional dictionary word.
# output: a stream of arrays with additional words selected from the characters in the string $letters.
# selected from the characters in the string $letters.
# The input array should be in alphabetical order; if soit is, so will the output array.
# so will the output array.
def extend($letters; $dict):
if $letters == "" then .
Line 329 ⟶ 331:
["offer","xi"]
</pre>
 
 
=={{header|Julia}}==
2,479

edits