Comments (3)
hmmm...
static size_t[2] foo(size_t[2] pos) { return pos; }
void main(string[] args)
{
auto v = ndiota(3, 3).map!foo.slice;
}
... This works! Can anyone tell me why? :)
from mir-algorithm.
Thank you for the bug report! Fixed in v0.0.25
.
@9il, I tried sorting this out by myself, but I can't make heads or tails with it. That said, I think it would be really productive if you could make some sort of tutorial (wiki page maybe) about internals of ndslice, i.e. how stuff works. I'd really like not to bug you from time to time to fix a bug in ndslice, but rather to fix it myself, but I feel without this introductory tutorial from you, lot of time has to pass before I'm able to do that. I'm sure other people would also appreciate a tutorial like this.
Yes, hope to do it
from mir-algorithm.
Fixed in v0.0.25.
Awesome, tnx!
Yes, hope to do it
Even more awesome! :)
from mir-algorithm.
Related Issues (20)
- Enhance functionality of `RefTuple` `label`s HOT 4
- labels support HOT 9
- Compilation fails on Linux aarch64 with hardfloat HOT 3
- Replace asserts with `should`s
- fuse on array of string HOT 1
- [feature request] Add numpy.genfromtxt() HOT 32
- add static check for supported complier versions directly in the code
- Bitwise operations on `bitSlice` HOT 1
- U+23F4 is graphical as of Unicode v7
- filter and each compiler error HOT 2
- Improve user-friendliness of `shouldApprox` for floating point slices HOT 1
- Sum doesn't work for const(Slice!T*) HOT 1
- `stairs` with 0 or 1 on diagonals HOT 1
- How to reference mir (and lubeck) libraries HOT 2
- 32 bit windows LDC build fails HOT 6
- dmd 2.103.0 deprecation warnings about class/interface alias this HOT 1
- is lightScope of Slice!(RCI!T, N) thread-safe? HOT 1
- Cannot writeln entire object when mixing zip/map
- const conversion with labels HOT 4
- lightImmutable not handling Labels properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mir-algorithm.