pointer to std.algorithm.iteration : splitter
Vino
akashvino79 at gmail.com
Thu Aug 31 05:16:02 UTC 2023
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 = splitter_ptr(str, ';');
foreach (word; words) { writeln(word); }
}
```
```
Error: template instance `splitter!((a, b) =>
a.splitter(b).array)` does not match any template declaration
```
From,
Vino
More information about the Digitalmars-d-learn
mailing list