Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Semordnilap/SuperCollider/semordnilap-1.sc
Normal file
12
Task/Semordnilap/SuperCollider/semordnilap-1.sc
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(
|
||||
var text, words, sdrow, semordnilap, selection;
|
||||
File.use("unixdict.txt".resolveRelative, "r", { |f| x = text = f.readAllString });
|
||||
words = text.split(Char.nl).collect { |each| each.asSymbol };
|
||||
sdrow = text.reverse.split(Char.nl).collect { |each| each.asSymbol };
|
||||
semordnilap = sect(words, sdrow); // converted to symbols so intersection is possible
|
||||
semordnilap = semordnilap.collect { |each| each.asString };
|
||||
"There are % in unixdict.txt\n".postf(semordnilap.size);
|
||||
"For example those, with more than 3 characters:".postln;
|
||||
selection = semordnilap.select { |each| each.size >= 4 }.scramble.keep(4);
|
||||
selection.do { |each| "% %\n".postf(each, each.reverse); };
|
||||
)
|
||||
6
Task/Semordnilap/SuperCollider/semordnilap-2.sc
Normal file
6
Task/Semordnilap/SuperCollider/semordnilap-2.sc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
There are 405 in unixdict.txt
|
||||
For example those, with more than 3 characters:
|
||||
live evil
|
||||
tram mart
|
||||
drib bird
|
||||
eros sore
|
||||
Loading…
Add table
Add a link
Reference in a new issue