February 28, 2023 Issues » [Issue 22156] Can't use all-types slice of not-all-types AliasSeq as type | |||
|---|---|---|---|
| |||
...can first extract the types from the AliasSeq and than create the needed tuple type. -- | |||
February 27, 2023 Issues » [Issue 23704] need `this` for a function accessed through a member alias tuple | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23704 Iain Buclaw <ibuclaw@gdcproject.org> changed... | |||
February 19, 2023 Learn » Re: Transform static immutable string array to tuple. | |||
|---|---|---|---|
| |||
Awesome, Thank both of you!
```
enum a = ["A", "B"];
writeln(a);
writeln(aliasSeqOf!a);
writeln... | |||
February 19, 2023 Learn » Re: Transform static immutable string array to tuple. | |||
|---|---|---|---|
| |||
In situations like this it's often better to define your dats as an AliasSeq... | |||
February 19, 2023 Learn » Re: Transform static immutable string array to tuple. | |||
|---|---|---|---|
| |||
https://dlang.org/phobos/std_meta.html#aliasSeqOf | |||
February 19, 2023 Learn » Transform static immutable string array to tuple. | |||
|---|---|---|---|
| |||
...array to a tuple or to an AliasSeq? ``` mixin(customSyntaxPrefixes.format!`tuple(%(%s,%))`) ``` I'd... | |||
February 14, 2023 Learn » Re: Simplest way to convert an array into a set | |||
|---|---|---|---|
| |||
...main()
{
size_t i;
str.map!(n => tuple(n, i++))
.assocArray.keys
.sort.writeln; // DLPaegimnoru... | |||
February 12, 2023 Issues » [Issue 23704] New: need `this` for a function accessed through a member alias tuple | |||
|---|---|---|---|
| |||
...a function accessed through a member
alias tuple
Product: D
Version: D2
Hardware: All
OS... | |||
February 11, 2023 General » Re: unittest "name" {} | |||
|---|---|---|---|
| |||
...instead. Each function might even be a tuple of unittest name and function pointer. Then... | |||
February 09, 2023 Learn » Re: Sort Associative Array by Key | |||
|---|---|---|---|
| |||
...val], key:[val]]` map can return a tuple and std.array.assocArray can make an... | |||
Copyright © 1999-2021 by the D Language Foundation