Comments (2)
Sorry for the late reply!
I see the point of your example. Interestingly, a.join(b)
is a.map2(b, |a, b| (a, b))
; this is a nice property for implementing it with vectors of any length.
Since it is also equivalent to a.into_iter().zip(b).collect()
, I'm wondering if we should call it zip()
, and if other libraries have a join()
method for similar types (maybe it has a different meaning?).
In any case it's not that big a deal. I would go with zip()
for consistency with the standard library (I mean that's more or less what we're doing with map()
) but it's OK if you prefer join()
!
from vek.
For instance in the standard library, join()
is used for the famous "join strings" operations; the only thing that concerns me is that the meaning of join()
for vectors might not be obvious, but zip()
more or less is, and Iterator
helps because it established a meaning for it.
from vek.
Related Issues (20)
- No invert() for Mat3 and others HOT 1
- Outdated/insecure dependencies HOT 4
- Should max and min take different type args? HOT 2
- Remove length 3 repr_simd vectors HOT 2
- Build broken on nightly HOT 3
- `micromath` feature to avoid libm on embedded platforms HOT 2
- Add a feature that weakens the `MulAdd` bound for matrix multiplication HOT 4
- Add `From<(Vec2<T>, T)>` for `Vec3<T>`? HOT 3
- Use `MulAdd` from num-traits HOT 4
- Move from Travis CI to GitHub Actions (or another free CI solution)
- Consider re-exporting crates with traits that vek depend on HOT 3
- Inclusive ranges are stable now HOT 1
- Compiler error with the feature, image HOT 2
- Add `bytemuck` integration for vector types HOT 10
- Consider exposing a way to normalize and get the previous magnitude of a vector in a single function HOT 3
- Please update rustc_version to 0.4 HOT 2
- Implement more num-traits (e.g. checked arithmetic) HOT 5
- Conversion/Casts considerations HOT 3
- New Release with (optional) `az` dependency HOT 1
- Does not compile on ``0.16.0`` with ``bytemuck`` feature HOT 1
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 vek.