[Issue 18161] New: std.algorithm.iteration.chunkBy should be usable in @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 3 02:18:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18161
Issue ID: 18161
Summary: std.algorithm.iteration.chunkBy should be usable in
@safe
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
import std.algorithm;
void test() @safe
{
auto data = [[1, 1], [1, 2], [2, 2], [2, 3]];
auto r1 = data.chunkBy!((a, b) => a[0] == b[0]);
}
--
More information about the Digitalmars-d-bugs
mailing list