Comments (2)
While we are here-
In the world of records, is there an actual convenient alternative to withItemN
methods?
E.g.
Lines 154 to 156 in aac8fae
Or is there any way to write equivalent utility functions for records?
from tuple.dart.
Hey, it's the nightly.link guy :D
Turns out, you are quite right. Records are immutable, and there's no built in way to copy them or iterate through their elements - you'd need something like (original.$1, 'new', original.$2)
. Can't even use the spread operator.
I hadn't used them myself yet, but would've assumed they'd have a few more functions than they do.
Maybe that in itself is enough reason for Tuples to keep existing.
from tuple.dart.
Related Issues (16)
- Add include to example on github and package
- Add .cast() methods HOT 1
- Common interface HOT 5
- operator== only checks the generic type HOT 1
- publish the latest contents HOT 4
- Please add tuple2 to map HOT 1
- Compatibility with json_serializable HOT 2
- [Proposal] Indexing tuples HOT 4
- Stable null safety release
- Set max SDK version to `<3.0.0`? HOT 3
- Loop structure - Helper method HOT 1
- update on package:tuple status
- Undefined class 'Tuple2'. Try changing the name to the name of an existing class, or creating a class with the name 'Tuple2
- first/second/third/last? HOT 1
- Whats the point of Tuple always being 'const'? 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 tuple.dart.