Search

January 20, 2022
Learn »
Don't make them random then, but use an incrementor.

If you can have ids...
January 20, 2022
Learn »
all done ;-)

// ---

module test;

import std.stdio : writeln;
import std.range : iota, isForwardRange, hasSlicing, hasLength...
January 20, 2022
Learn »
arrg!

what was i thinking! ;-)

// ---
void makeUniqueIDs(ref uint[] arr, size_t sz)
{
    arr.reserve...
January 20, 2022
Learn »
...matrix consisting of 5 tuples,
    // with each tuple containing 3 random bools (0 or 1...
January 20, 2022
Learn »
...getAttributes, member)` call always returns an empty tuple. Calling `__traits(getAttributes, Manager.subsystem)` manually works...
January 19, 2022
Learn »
Do the id's have to be unique?  If not, std.random.uniform() would do...
January 20, 2022
Learn »
...number of bool values contained within each tuple.

e.g.
createBoolMatrix(mArrBool,3, 2);
[[1...
January 19, 2022
Learn »
...not use a struct or std.typecons.Tuple instead?
>
> Premature optimization. ;-)

Not in this case...
January 19, 2022
Learn »
...matrix consisting of 5 tuples, with each tuple containing 3 random bools (0 or 1...
January 19, 2022
Learn »
...matrix consisting of 5 tuples, with each tuple containing 3 random bools (0 or 1...
51 52 53 54 55 56 57 58 59 60 61 62
Next ›   Last »