https://github.com/fujidaiti/i_list
A simple immutable list
https://github.com/fujidaiti/i_list
dart
Last synced: 8 months ago
JSON representation
A simple immutable list
- Host: GitHub
- URL: https://github.com/fujidaiti/i_list
- Owner: fujidaiti
- License: mit
- Created: 2020-12-22T16:41:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T17:03:23.000Z (almost 5 years ago)
- Last Synced: 2025-01-02T02:42:44.190Z (9 months ago)
- Topics: dart
- Language: Dart
- Homepage: https://pub.dev/packages/i_list
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# i_list
A simple immutable list (dart). See `lib/i_list.dart`.
## How to use
```dart
final list = IList([1, 2, 3, 4, 5]);
final list2 = list.transform((it) {
it.add(6);
it.remove(1);
});
print(list); // [1, 2, 3, 4, 5]
print(list2); // [2, 3, 4, 5, 6]
```# License
The source code is licensed MIT. The website content is licensed CC BY 4.0,see LICENSE.# Link
- [Available on pub.dev](https://pub.dev/packages/i_list)