Re: pointer to std.algorithm.iteration : splitter

2023-08-31 Thread vino via Digitalmars-d-learn
On Thursday, 31 August 2023 at 10:46:53 UTC, Dukc wrote: On Thursday, 31 August 2023 at 05:16:02 UTC, Vino wrote: [...] I'm assuming you want to instantiate `splitter` and take the address of the resulting function, so that `splitter_ptr` will be a function pointer or a delegate. [...] T

Re: pointer to std.algorithm.iteration : splitter

2023-08-31 Thread Dukc via Digitalmars-d-learn
On Thursday, 31 August 2023 at 05:16:02 UTC, Vino wrote: Hi All, Request your help on the below error Program ``` void main() { import std.stdio:writeln; import std.algorithm.iteration : splitter; auto splitter_ptr = &splitter!((a, b) => a.splitter(b).array);

Re: pointer to std.algorithm.iteration : splitter

2023-08-31 Thread FeepingCreature via Digitalmars-d-learn
On Thursday, 31 August 2023 at 05:16:02 UTC, Vino wrote: Hi All, Request your help on the below error Program ``` void main() { import std.stdio:writeln; import std.algorithm.iteration : splitter; auto splitter_ptr = &splitter!((a, b) => a.splitter(b).array);

pointer to std.algorithm.iteration : splitter

2023-08-30 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below error Program ``` void main() { import std.stdio:writeln; import std.algorithm.iteration : splitter; auto splitter_ptr = &splitter!((a, b) => a.splitter(b).array); string str = "TEST1;TEST2;TEST3"; auto words = spl