Hi all,
I'm trying to figure out the most efficient way to create
modified instances of immutable structs.
Currently, I'm doing the following:
```d
immutable struct Node {
string label;
Node parentNode;
NetworkPort port;
auto withLabel(string newLabel)
Goal achieved! Thanks all, really appreciate the assistance.
Hi All,
I'm trying to understand immutability in D and it seems a bit odd.
I'm coming from dynamic languages so please forgive my ignorance
and dynamic language-isms.
I want to have a base `Project interface` and then extend other
more specific interfaces from that such as `DockerEnabledProje
On Friday, 27 August 2021 at 04:01:19 UTC, Ali Çehreli wrote:
On 8/26/21 7:17 PM, Merlin Diavova wrote:
[...]
Then the operations downstream will not produce any results.
For example, the array will be empty below:
import std.stdio;
import std.range;
import std.algorithm;
import std.string
On Friday, 27 August 2021 at 02:10:48 UTC, Stefan Koch wrote:
On Friday, 27 August 2021 at 01:51:42 UTC, Merlin Diavova wrote:
Hi all,
I'm Merlin, I'm just starting out in D and super excited.
My questions are:-
1. In a range pipeline how does one handle the event of a
filter range returning
Hi all,
I'm Merlin, I'm just starting out in D and super excited.
My questions are:-
1. In a range pipeline how does one handle the event of a filter
range returning empty?
2. How does one unwrap a single result from a range operation?
Look forward to your assistance!
Merlin