On Sunday, 7 January 2018 at 12:09:32 UTC, Vino wrote:
On Saturday, 6 January 2018 at 15:32:14 UTC, thedeemon wrote:
On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote:
[...]
Here's a version with Array, it's very similar:
import std.algorithm: countUntil, joiner, sort, uniq, map;
import std.csv: csvReader;
import std.stdio: File, writeln;
import std.typecons: Tuple, tuple;
import std.meta;
import std.file : readText;
import std.container.array;
[...]
Hi Deemon,
Thank you very much, moving to second phase.
From,
Vino.B
Hi Deemon,
Just noticed that the output writes the data and key as 2 values
, but the requirnment is to write to six files, e.g
Data File 1
["Baker", "John", "Johnson", "Jones", "Miller", "Millers",
"Millman", "Zsuwalski"]
Key File 1
[4, 1, 6, 7, 0, 4, 3, 4, 2, 1, 6, 5]
Data File 2
["America", "Austrilia", "Canada", "Chile", "China", "India",
"Japan", "Netherlands"]
Key File 2
[0, 5, 1, 6, 4, 2, 1, 5, 7, 0, 4, 3]
Data File 3
[18, 21, 23, 42, 45]
Key File 3
[2, 3, 1, 4, 4, 2, 0, 1, 3, 3, 3, 2]
From,
Vino.B