The idea of not making std.algorithm.among!() a predicate was not so good:

void main() {
    import std.stdio, std.algorithm;
    auto s = "hello how\nare you";
    s.until!(c => c.among!('\n', '\r')).writeln;
}


(A normal workaround is to use !!c.among!).

Bye,
bearophile

Reply via email to