On Friday, 11 November 2022 at 06:10:33 UTC, Alexander Zhirov
wrote:
On Friday, 11 November 2022 at 05:36:37 UTC, Alexander Zhirov
wrote:
On Friday, 11 November 2022 at 00:02:09 UTC, Alexander Zhirov
wrote:
```d
import std.algorithm;
arr = arr.remove(arr.countUntil(fragment));
```
And will th
On Friday, 11 November 2022 at 05:36:37 UTC, Alexander Zhirov
wrote:
On Friday, 11 November 2022 at 00:02:09 UTC, Alexander Zhirov
wrote:
```d
import std.algorithm;
arr = arr.remove(arr.countUntil(fragment));
```
And will this method work?
```d
A[] arr;
A fragment = new A;
...
remove(current
On Friday, 11 November 2022 at 00:02:09 UTC, Alexander Zhirov
wrote:
```d
import std.algorithm;
arr = arr.remove(arr.countUntil(fragment));
```
And will this method work?
```d
A[] arr;
A fragment = new A;
...
remove(current => current == fragment)(arr);
```
On Thursday, 10 November 2022 at 23:36:29 UTC, H. S. Teoh wrote:
On Thu, Nov 10, 2022 at 11:26:45PM +, Alexander Zhirov via
Digitalmars-d-learn wrote:
I have an array of self-written class `A`. I'm sorry for my
tactlessness, but I'm confused about the modules. How do I
correctly find a spec
On Thu, Nov 10, 2022 at 11:26:45PM +, Alexander Zhirov via
Digitalmars-d-learn wrote:
> I have an array of self-written class `A`. I'm sorry for my tactlessness,
> but I'm confused about the modules. How do I correctly find a specific
> object `fragment` inside the array and delete it? I don't
I have an array of self-written class `A`. I'm sorry for my
tactlessness, but I'm confused about the modules. How do I
correctly find a specific object `fragment` inside the array and
delete it? I don't quite understand which modules to use to do
this optimally.
```d
A[] arr;
A fragment = new