Design question regarding saving changes in the original array and/or returning a new set

matheus matheus at gmail.com
Sun Oct 23 18:17:34 UTC 2022


On Sunday, 23 October 2022 at 17:36:25 UTC, Paul Backus wrote:
> On Sunday, 23 October 2022 at 13:32:44 UTC, matheus wrote:
>> ...
>
> You say your idea is "like passing some argument", so why not 
> actually pass an argument?
>
> For example:
> ...

Hi, thanks for the example, and yes I'd like to do that, but I'm 
looking for this "chaining"  things which seems to be some sort 
of pattern these days.

Like I said to Sergey, I think I'll use the library as example, 
except that I think that I'd do the otherwise, calling just 
"sort()" would give a duplicate, and chaining with "save()", 
"inplace()" or whatever name is would sort in place (Caller).

Thanks,

Matheus.




More information about the Digitalmars-d-learn mailing list