October 07, 2023 Learn » Re: how to assign multiple variables at once by unpacking array? | |||
|---|---|---|---|
| |||
...can't, there was a DIP for tuple/deconstruction prior to that question, sadly nothing... | |||
October 07, 2023 Learn » Re: how to assign multiple variables at once by unpacking array? | |||
|---|---|---|---|
| |||
...C] dict;
C[F] freq;
void opAssign(Tuple!(C, F, S) chr) {
dict[chr[0... | |||
October 05, 2023 Learn » Re: Getting all struct members and values with introspection avoiding string mixins | |||
|---|---|---|---|
| |||
...tupleof[i]` create at compile time the tuple, just to read a single element, when... | |||
October 05, 2023 General » Re: Stack based array language (Uiua) | |||
|---|---|---|---|
| |||
...T...)(Tuple!(S,T) stack)=>tuple(stack.expand,stack[$-1]); auto push(S,T...)(Tuple... | |||
October 04, 2023 General » Re: Stack based array language (Uiua) | |||
|---|---|---|---|
| |||
...auto tuple(T...)(T args)=>Tuple!T(forward!args); auto dup(S,T...)(Tuple!(S... | |||
October 01, 2023 Learn » Straight Forward Arrays | |||
|---|---|---|---|
| |||
...class? Something along the lines of the tuple: (pointer to elements, length, capacity). I tried... | |||
September 19, 2023 Learn » Re: Which function returns a pair after division ? (integer,frac) | |||
|---|---|---|---|
| |||
...auto getVal(int a, int b) {
// ...
return tuple(integer, frac);
}
// out params
int getVal2(int... | |||
September 17, 2023 Announce » Re: SerpentOS departs from Dlang | |||
|---|---|---|---|
| |||
I hope we'll see tagged union + tuple come first before that mess you are... | |||
September 16, 2023 Issues » [Issue 24088] A nested function that returns a tuple that is written with short syntax function does not want to compile. | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24088 --- Comment #5 from Dlang Bot <dlang... | |||
September 13, 2023 Learn » Re: Struct nested function | |||
|---|---|---|---|
| |||
...import std.parallelism: task;
import std.typecons: tuple;
struct MainEngine {
int rno;
string firstname;
string... | |||
Copyright © 1999-2021 by the D Language Foundation