split Error - no overload matches
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Feb 16 17:16:56 UTC 2022
On Tue, Feb 15, 2022 at 06:37:44PM +0000, meta via Digitalmars-d-learn wrote:
> A trick i use often:
>
> ```D
> import std;
>
> void main()
> {
> import uni = std.uni;
> writeln("Learning D is fun".split!(uni.isWhite));
> }
>
> ```
>
> Under-rated way of importing things, you don't bloat your scope
> anymore
+1, noice! I should use this more often.
T
--
Truth, Sir, is a cow which will give [skeptics] no more milk, and so they are gone to milk the bull. -- Sam. Johnson
More information about the Digitalmars-d-learn
mailing list