File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ authors "Ilia Ki" "John Michael Hall" "Shigeki Karita" "Sebastian Wilzbach" "And
5
5
copyright "2020 Ilia Ki, Kaleidic Associates Advisory Limited, Symmetry Investments"
6
6
license "Apache-2.0"
7
7
8
- dependency "mir-core" version=">=1.3.5 "
8
+ dependency "mir-core" version=">=1.5.2 "
9
9
10
10
// dflags "-version=MirNoSIMD"
11
11
// dflags "-mtriple=aarch64-linux-gnu"
Original file line number Diff line number Diff line change @@ -4206,6 +4206,21 @@ unittest {
4206
4206
assert (z2.equal! equal(result2));
4207
4207
}
4208
4208
4209
+ // Ensure filter works with each
4210
+ version (mir_test)
4211
+ @safe pure nothrow
4212
+ unittest {
4213
+ import mir.ndslice.slice: sliced;
4214
+
4215
+ int [] result = [3 , 4 ];
4216
+
4217
+ int [] x = [1 , 2 , 3 ];
4218
+ auto y = x.filter! " a >= 2" ;
4219
+ y.each! " a++" ;
4220
+
4221
+ assert (y.equal(result));
4222
+ }
4223
+
4209
4224
/+ +
4210
4225
Implements the higher order filter and map function. The predicate and map functions are passed to
4211
4226
`mir.functional.naryFun`, and can either accept a string, or any callable
You can’t perform that action at this time.
0 commit comments