Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander Zhirov 3f11e9e2df added autocreation-dub 2021-11-09 04:18:50 +03:00
3 changed files with 0 additions and 40 deletions

View File

@ -1,15 +0,0 @@
.dub
docs.json
__dummy.html
docs/
/example_4
example_4.so
example_4.dylib
example_4.dll
example_4.a
example_4.lib
example_4-test-*
*.exe
*.o
*.obj
*.lst

View File

@ -1,9 +0,0 @@
{
"authors": [
"alexander"
],
"description": "Массивы и ассоциативные массивы. Работа со словарем.",
"license": "proprietary",
"name": "example_4",
"targetPath": "bin"
}

View File

@ -1,16 +0,0 @@
import std.stdio, std.string;
void main()
{
size_t [string] dictionary;
foreach (line; stdin.byLine)
{
foreach (word; strip(line).split)
{
if (word in dictionary) continue;
auto newID = dictionary.length;
dictionary[word.idup] = newID;
writeln(newID, '\t', word);
}
}
}