October 24, 2022 Learn » Re: Supporting foreach (k, v; T.init) for a user-defined (container) type | |||
|---|---|---|---|
| |||
...front() returns a Tuple. We have an esoteric feature where a tuple expands automatically in... | |||
October 21, 2022 Learn » Re: Find in assoc array then iterate | |||
|---|---|---|---|
| |||
...main() {
auto m = iota(20).map!(i => tuple(i, format!"value_%s"(i))).assocArray;
foreach... | |||
September 29, 2022 Issues » [Issue 11595] __traits(allMembers, packageName) behaves oddly. | |||
|---|---|---|---|
| |||
...tuple("object", "core")
tuple()
-----
Since 2.094.2: Success with output:
-----
tuple("object", "core")
tuple... | |||
September 28, 2022 Learn » Re: line terminators | |||
|---|---|---|---|
| |||
...read the important parts right into a tuple. Should it be unstructured data, then there... | |||
September 26, 2022 Issues » [Issue 23377] class method overloading with same name doesn't work for base classes | |||
|---|---|---|---|
| |||
...prints: tuple(fun)
pragma(msg, __traits(getOverloads, Derived1, "fun"));
class Derived2 : Base {}
// prints tuple(fun... | |||
September 22, 2022 Issues » [Issue 23360] Template alias to tuple member variable doesn't expand | |||
|---|---|---|---|
| |||
...successfully:
---
// OK - use foo.tuple directly
AliasSeq!(int) t = foo.tuple;
---
---
// OK - attach the `this... | |||
September 22, 2022 Issues » [Issue 23360] New: Template alias to tuple member variable doesn't expand | |||
|---|---|---|---|
| |||
...foo.tuple(__tuple_field_0)` of type `(int)` to `int` --- In other words, the tuple... | |||
September 18, 2022 General » I've made a language! \o/ Introducing Neat | |||
|---|---|---|---|
| |||
...by default. It also has built-in: tuple types, sumtypes with implicit conversion, named parameters... | |||
September 12, 2022 General » Re: Performance optimization for minElement and maxElement | |||
|---|---|---|---|
| |||
...accumulator value, the callback could return a tuple of the next value and a `bool... | |||
September 09, 2022 Learn » Re: Validate static asserts | |||
|---|---|---|---|
| |||
...That's easier than doing some weird tuple thing. But validating that the correct message... | |||
Copyright © 1999-2021 by the D Language Foundation