January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
good pickup. thanks ;-) // ---- module test; @safe: import std.stdio : write, writef, writeln, writefln; import std... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
What's the point of calling .dup here? The only reference to records is going... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
oops... should be:
// ---
int[][int][] CreateDataSet
(const(int) recordsNeeded, const(int)valuesPerRecord)
{
int[][int][] records... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
even better, I got rid of all those uncessary arrays ;-) // --- int[][int][] CreateDataSet (const(int... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
thanks. that makes more sense actually ;-) now i can get rid of the idArray completely... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
yes, I was thinking this over as I was waking up this morning, and thought... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Yeah, iota is a random-access range, so you can just pass it directly, and... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Actually you don't even need to do this, unless you want precise control over... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
[...] Ah yes, the good ole O(N²) trap that new programmers often fall into. :-) Using... | |||
January 21, 2022 Issues » [Issue 22291] __traits(arguments) to return a tuple of the function arguments | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22291 Dlang Bot <dlang-bot@dlang.rocks... | |||
Copyright © 1999-2021 by the D Language Foundation