January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Premature optimization. ;-) There's nothing wrong with allocating an array. If you're worried about... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On 1/19/22 14:33, Ali Çehreli wrote:
> Random rnd;
>
> shared static this() {
> rnd... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...not use a struct or std.typecons.Tuple instead?
auto randomTuple() {
return [ randomValue(), randomValue() ];
}
void... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Why can't you just use a loop to initialize it? uint[][] createBoolMatrix(size_t... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
oh. that randomShuffle was unnecessary ;-) | |||
January 19, 2022 Learn » automate tuple creation | |||
|---|---|---|---|
| |||
so I have this code below, that creates an array of tuples. but instead of... | |||
January 18, 2022 General » Versionable default parameters | |||
|---|---|---|---|
| |||
...Fake function from which to extract parameter tuple.
void locusFunc(string file = __FILE__, size_t... | |||
January 16, 2022 General » Re: bottom type as parameter or local variable, does that make sense? | |||
|---|---|---|---|
| |||
...the value of the unit type, 0-tuple, or whatever. Zero type is different. Timon... | |||
January 13, 2022 Issues » [Issue 22672] New: Allow casting from TypeTuple to TypeTuple | |||
|---|---|---|---|
| |||
...is.
---
alias Tuple(T...) = T;
void foo()
{
Tuple!(int, int) tup;
cast(Tuple!(int, int... | |||
January 12, 2022 Learn » Re: Static indexing | |||
|---|---|---|---|
| |||
...094. `std.typecons.Tuple` does it much differently. It declares the tuple as an alias... | |||
Copyright © 1999-2021 by the D Language Foundation