Re: Exclamation symbol "!" within functions syntax

2022-08-01 Thread pascal111 via Digitalmars-d-learn
On Monday, 1 August 2022 at 12:58:27 UTC, Paul Backus wrote: On Monday, 1 August 2022 at 11:35:25 UTC, pascal111 wrote: I noticed that filter is using the concept of templates but this time it's with a lambda function, not with a data type, how can we explain this? isn't supposed to use a data

Re: Exclamation symbol "!" within functions syntax

2022-08-01 Thread Paul Backus via Digitalmars-d-learn
On Monday, 1 August 2022 at 11:35:25 UTC, pascal111 wrote: I noticed that filter is using the concept of templates but this time it's with a lambda function, not with a data type, how can we explain this? isn't supposed to use a data type after the exclamation mark: "auto r = chain(a,

Re: Exclamation symbol "!" within functions syntax

2022-08-01 Thread pascal111 via Digitalmars-d-learn
On Wednesday, 27 July 2022 at 11:09:19 UTC, Ali Çehreli wrote: On 7/27/22 04:00, pascal111 wrote: I noticed more than once that the exclamation "!" is used within functions typing, and it seems like an operator with new use, for example "to!int()", ".tee!(l => sum += l.length)",

Re: Exclamation symbol "!" within functions syntax

2022-07-27 Thread pascal111 via Digitalmars-d-learn
On Wednesday, 27 July 2022 at 11:09:19 UTC, Ali Çehreli wrote: On 7/27/22 04:00, pascal111 wrote: I noticed more than once that the exclamation "!" is used within functions typing, and it seems like an operator with new use, for example "to!int()", ".tee!(l => sum += l.length)",

Re: Exclamation symbol "!" within functions syntax

2022-07-27 Thread Ali Çehreli via Digitalmars-d-learn
On 7/27/22 04:00, pascal111 wrote: I noticed more than once that the exclamation "!" is used within functions typing, and it seems like an operator with new use, for example "to!int()", ".tee!(l => sum += l.length)", "enforce!MissingArguments...", so what dose it means? The binary !

Exclamation symbol "!" within functions syntax

2022-07-27 Thread pascal111 via Digitalmars-d-learn
I noticed more than once that the exclamation "!" is used within functions typing, and it seems like an operator with new use, for example "to!int()", ".tee!(l => sum += l.length)", "enforce!MissingArguments...", so what dose it means?