Search

January 20, 2022
Learn »
...first_;
>      return cast(size_t)len;//*/
>    }
> ```

Good catch but we can't ignore '- empty_'. Otherwise...
January 20, 2022
Learn »
...void createValuesArray(ref int[][] m, size_t recordsNeeded, size_t valuesPerRecord)
{
    m = iota(recordsNeeded)
            .map...
January 20, 2022
Learn »
...void createBoolMatrix(ref uint[][] m, size_t numberOfTuples, size_t numberOfBoolsInTuple)
{
    m = iota(numberOfTuples)
            .map...
January 20, 2022
Learn »
...d
// ...
  size_t length() inout {
    auto len = 1 + (last - front) / step;
    return cast(size_t...
January 20, 2022
Learn »
...i thinking! ;-)

// ---
void makeUniqueIDs(ref uint[] arr, size_t sz)
{
    arr.reserve(sz);

    // id needs...
January 20, 2022
Learn »
...T && hasSlicing!T && hasLength!T && !isInfinite!T)
{
    t.writeln;
}


void makeUniqueIDs(ref uint[] arr, size...
January 20, 2022
General »
...is insufficient, I don't think it would...say for example cache size (or available registers...
January 19, 2022
Learn »
...void createBoolMatrix(ref uint[][] m, size_t numberOfTuples, size_t numberOfBoolsInTuple)
{
    m = iota(numberOfTuples)
            .map...
January 19, 2022
Learn »
...the outer block, like this:

	uint[][] createBoolMatrix(size_t count) {
		auto buffer = new uint[count...
January 19, 2022
Learn »
...randomValue(), randomValue() ];
}

void createBoolMatrix(ref uint[][] m, size_t count)
{
  import std.algorithm : map;
  import...
108 109 110 111 112 113 114 115 116 117 118
Next ›   Last »