p-hatan/ mirror

pub repository

mirror.p-hatan.ir

more

1.8.0

More Dart — Literally

Download archive

Readme

More Dart — Literally

Pub Package Build Status Coverage Status GitHub Issues GitHub Forks GitHub Stars GitHub License

Various extensions that make Dart a better place:

  • cache.dart is a collection of different caching strategies and their expiry policy.
  • char_matcher.dart is a model for character classes, their composition and operations on strings.
  • collection.dart is a collection of collection types (bi map, bit list, multi set, range, string).
  • fraction.dart provides exact rational number arithmetic.
  • int_math.dart is a collection of common mathematical functions on integers.
  • iterable.dart is a collection of iterables and iterators.
  • ordering.dart a fluent interface for building comparator functions.

And there are more to come ...

This library is open source, stable and well tested. Development happens on GitHub. Feel free to report issues or create a pull-request there. General questions are best asked on StackOverflow.

Up-to-date class documentation is created with every release.

Misc

Installation

Follow the Installing instructions on https://pub.dartlang.org/packages/more.

Import one or more of the packages into your Dart code using:

import 'package:more/cache.dart';
import 'package:more/char_matcher.dart';
import 'package:more/collection.dart';
import 'package:more/fraction.dart';
import 'package:more/int_math.dart';
import 'package:more/iterable.dart';
import 'package:more/ordering.dart';

History

This library started in April 2013 as I was working through the puzzles of Project Euler and encountered some missing features in Dart. Over time the library grew and became more useful in many other places, so I created this reusable library.

License

The MIT License, see LICENSE.

Changelog

Changelog

1.8.0

  • Ordering.reversed, Ordering.nullsFirst, Ordering.nullsLast, and Ordering.lexicographical are now properties for consistency with the Iterable protocol.
  • Various optimization and improvements on the Range class.

1.7.2

  • Cleanup after micro library migration.
  • Move to latest Dart provided mixins.

1.7.1

  • Cleanup after micro library migration.
  • Address linter warnings.
  • Better test coverage.

1.7.0

  • Migrate to micro libraries.
  • Add caching library.

1.6.0

  • Use generic method syntax.

1.5.3

  • Fix pubspec SDK constraints.

1.5.2

  • Fix linter warnings.
  • Improve documentation.

1.5.1

  • Strong compiler compliant.

1.5.0

  • Fix various typos and linter issues.
  • Reformat documentation.

1.4.0

  • Migrate to Travis.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add more
pubspec.yaml
name: more
version: 1.8.0
author: Lukas Renggli <renggli@gmail.com>
description: More Dart — Literally
homepage: https://github.com/renggli/dart-more
environment:
  sdk: '>=1.23.0 <2.0.0'
dependencies:
  collection: '^1.14.0'
dev_dependencies:
  test: ^0.12.0

Version history

VersionPublishedArchiveSHA-256
0.5.02013-04-25T06:34:50.496180ZDownloadc711fa3a311cc3d50e5d9ec9d9b78e9928894cc416ffd3e588df78e9dfb6893b
0.5.12013-04-25T19:34:02.182700ZDownload20a1f70191df1afbb570ddc4a1129f233a00c852a6b007256c315ab5ca7a532f
0.5.22013-04-28T09:07:38.438990ZDownloadb3047d52d08251fa12e2fd9f9a0d286250330fc239a3bb0f22459c8f6ab28936
0.5.32013-04-29T21:59:13.393640ZDownload8e7e3462b6d1244554116a4aa77d01a023919f8f3f82aeba0149cb02e740d41f
0.5.42013-05-04T10:57:00.826960ZDownloada9b74a760eb76cf9739a98eb025bb35291a03db64454214cf84cbfc38197c2cf
0.5.52013-05-10T05:28:56.475260ZDownload48c254096bac222c31175243220c0dce78a99a9f7a84ae54df257602b79ff4f9
0.5.62013-05-20T09:48:53.899670ZDownloadab34fd0db7ed2dff126136ec23b3d5c3cbe30091dc2f46819a847227d131f7ff
0.5.72013-05-30T19:03:04.076110ZDownloadfeaa8995e2db6d741c5d5c4d7b73408c92f2d7803cc15ea2cee51a48e356d81f
0.5.82013-06-08T11:31:42.843190ZDownloadf65f697dda80ba452d4b136122cb97ac1ade39bf67c184e9e2c60e3247cf1e7a
0.5.92013-06-08T12:17:53.737120ZDownloadbc2229b0383a76d18085dc0d5ef6a5d7a204a6e3b651f4f493848096c70f1ff2
0.5.102013-06-13T17:48:59.108330ZDownloadffd71813c3a7cc1d2bab8ca801cd0ce1f79e09d7205c43eac7faedeedc3c9238
0.5.112013-06-20T19:28:25.047860ZDownloada231b640779d37f54214c58fb948380f3021c6fd3aa6205bd7d59d165dbd4d74
0.5.122013-07-07T13:40:44.137680ZDownloadaea66a7fa6a5c9d98d65324d67e3b5b86cda17ee170033657b00c7bab3897dfd
0.5.132013-07-07T17:24:51.460110ZDownload29d4dd5b01ed0534fe1b0feaff1ad46f5a3800875faa2d5cd61bc9f9200ce03d
0.5.142013-07-09T21:47:49.863050ZDownloade158416e9e03c1783783beaf0551cee1b3ab733fe42cbf2e9680ad3041c941ec
0.5.152013-07-11T20:27:58.501890ZDownload487059a40ec77adc299c8198778729902d8be211324499d6fabbd920a6123713
0.5.162013-08-03T09:49:17.185370ZDownload5d60a8efb5b0dd2f672c67c4e7939c9150d11998c433110e30f04b4c878d3632
0.5.172013-08-15T08:15:04.269770ZDownload4bc67f7fd8bac485f1a21175d339c64a270ea622161491940bae272e4e9b50c7
0.5.182013-09-09T14:39:07.060790ZDownload4c9f706bdd0129e609d54df7ed0b55f2e7476610f54b38a55e9fabe51e2239e6
0.5.192013-09-09T14:47:13.212730ZDownload102727f6b02291e5b2234c69aad74829203c70aa58590124c1dd7eed0734cd5e
0.5.202013-09-17T11:46:08.607900ZDownload216b44a1084733e0f05ac854fefdf4ef5b508b98875a607b00fc5773c3bbf58c
0.5.212013-10-05T09:53:48.153070ZDownload0964e19d1926a1b8eb010fbfa46a2c9d5eb347a6973ef657d5971fe93b420f3c
0.5.222013-10-29T07:08:44.738210ZDownloade6d015232016448aaac9c491720336c0ca5a6dc0b779a4ad831af9851e1fcda5
1.0.02013-11-08T17:44:43.022750ZDownloadbeb3a1abcef105e2fb705638641536bc3f79cebd538789307c860b479a35e96d
1.0.12014-01-07T23:26:27.108930ZDownloadb79ad89cd4f09c54a15c9a9f29d9954b068eca884be0a13bd664119a2f818d9b
1.0.22014-01-21T07:37:28.795ZDownload7f8469723a54852fd99695f03e4881386befbc920001766c90b77f0d69414bc8
1.0.32014-02-03T21:04:30.185880ZDownloadd42360b6ea6bf0c28adc3836f858acca31fa04c56eb81314f6ce3aae309af7fd
1.0.42014-02-03T23:34:39.467580ZDownload930f4e1a07dc10b6237372ec6e7b61f14a4c87584f908dc32087031b36916c90
1.1.02014-02-09T20:03:14.260350ZDownload1e149824ae407546a6d9a0caa58706fe7427a50ba835a330cc3366d9357a3b57
1.1.12014-02-28T07:34:33.322740ZDownload0f6fcdf6f753a29f65b60c03ce5c180aabfd7467debb3f5e3e9028d7fc98c2ed
1.2.02014-04-07T06:26:26.740160ZDownload14fb1b11ac66d9aba93c0019828156c62847a81c351f7c283300f89ead97ebd7
1.2.12014-05-13T17:24:37.810040ZDownload07a123eb70f29bd75795649d99026506ad1669b337bc1bc4144b926c3f649576
1.3.12014-08-01T17:36:16.079060ZDownloada0c2411e0a4895b2688b8f77b21d348273d0492ad0f2d5593a35a245fe25b35e
1.3.22014-08-16T10:30:34.361990ZDownload5cc15487020b3a644fd28b43d9942ff7a7a55102a32f028a09136808862b724d
1.3.32014-11-29T09:25:12.950490ZDownload563a4f1e726416bd1190131603f1c420a31e5c3b8ed0241bbfb8f38f2277b39e
1.3.42014-12-30T11:05:50.529190ZDownload035d3b187a061c78354dabc1ea5871f5e2172668fde99ec18b280d8031c8780d
1.3.52015-01-23T21:34:18.727690ZDownload4a357f2420e692a52927a4a2b9bc7e9cefe14bbd10dcd6e4007cc26a40e0b50c
1.3.62015-04-25T12:24:59.797770ZDownload814095d37108d460980df0d0fe6422972859997872a32ed411df44a6ccdc2878
1.3.72015-04-25T22:16:54.089270ZDownload81489facea7c1702bb7fa2965f088b9d302e31d1d40d39982d096d23058aa48e
1.4.02015-05-15T18:02:06.892ZDownloadca91d816f291c8f4c3708e92a661495c2d00f46c5013619cec2083d0cab7488e
1.5.02015-10-06T18:02:26.491ZDownload3d6263d370d5d3ef8668c2e4cdbdeac6ef7badb4345a1a476261672149deacf8
1.5.12016-04-05T07:06:37.592ZDownload56c738e3d1772fef71d4c0f83f3170898dcb533153860d8aa9b78b674c25ae23
1.5.32016-10-17T15:14:17.219ZDownloada87e31f6196bab57335f9cd907e863adb11b2b76560f653961971765b6c907ab
1.6.02016-12-19T16:31:27.882ZDownload39755382989c3a5ab5a84ac0156914c6ca89c84355e48f9a3f636e5580270558
1.7.02017-07-22T08:55:33.945538ZDownload4ce40583af3b696f7a83eaf24b70ca8ce1ba0909796ab6e0fae2b1d82af71c95
1.7.12017-07-22T12:30:22.944954ZDownload03b217cbe2032b906a12932d4e2e6c5281b922b9a9e560bc38fc5ad92a7a135b
1.7.22017-08-04T20:30:55.593731ZDownload858df3dbb371e52d96ee6168e02e38f6d090b4f87e0055b3138d1fe2307f1d34
1.8.02017-09-01T07:57:40.473588ZDownload59311c8fbc0d5a4848d8f5986e51a667ac5379960e0d420245018d681bebf899
1.8.12017-11-05T13:49:03.686125ZDownload8b1a54e8c4116ff52e36667f2a731e052d76ff72503c569e1b89b7667150230c
1.9.02018-03-11T19:50:29.652209ZDownloadd23f4d739b58805146bee55268cbb1b7aff233bf9642c3c4c9894600dc46b6a4
1.9.12018-07-21T13:49:13.974143ZDownload01d0a9e71337a48b7eae4f4c49c9077ed08c527f37a13d6b5098779b2581a187
1.9.22018-07-21T14:02:14.845305ZDownload387b5a7b904ce5ce32869786d836a4ff2123cb06542fe48149347a886b5afbec
1.10.02018-07-28T14:01:07.217681ZDownload9df82e09f5463488a18fc721f6445ef7d80e4c7bfe350f214d096aa160da4d78
1.10.12018-07-28T14:03:04.989035ZDownloaded690174abe09ab8647b5f04e9c0e489790bf6c1cfbd53ae4fdac94c35a105b9
1.11.02018-09-01T21:25:58.776806ZDownloadb4b9877579b042b48acb0f193604b149cba443d0bd80b4ee744195dbb30dc9ea
1.11.12018-09-01T23:09:24.436149ZDownload39a32a11341c5b8d443c0de318e69b09fa415c39d420cd0f4d2a5dc1a30e1ddd
1.11.22018-09-09T08:52:24.589535ZDownload4c9a1e480816a4dcad924d7e6f0f7fc12ce54cf850fbdacc535ab2ad79eaa498
1.11.32018-09-09T20:07:04.765435ZDownloadb5fb3ce9ffca658d0fdcb42da37ca1323f2265dd410c006bafadbd09f2814c22
1.11.42018-09-09T20:14:49.453745ZDownload1c93e4490e23c75e2efb42a151ced4c360c873724ba47fca0ee81a0736d84444
1.11.52018-09-15T15:42:26.287398ZDownload6926584709b2c32bcd343e33183a876b94f82bb375b283cc5600e40bd519a825
1.12.02018-09-16T17:54:51.225058ZDownload45d10e838139371a29d4531bd0226164720dbdc3832393d412dfce35d7e2849d
1.12.12018-09-27T14:07:26.689843ZDownload58bcc12b2fed5ac82479fedff04468056c8fdfa58c24c1d42ca958a6753751c2
1.13.02019-02-02T12:12:00.930965ZDownload0a030553a2b011fc1d0fe721977cb19ed9e9f54ce579636d19942cad2d96d3ef
1.14.02019-02-16T14:17:57.800646ZDownload89efb483cb0c78dd4521ca8e8d3aeeb32601fdf6138305bf7a7e8c38d12e8045
1.14.12019-02-16T17:07:04.176792ZDownload987c50edb5ba3f72b8dedd6434b3c091d9e6cd0b904cdcde9ad37f27934718f5
1.14.22019-02-17T13:36:56.038890ZDownloadcaa502be50a30bb4fe9d4b599e327b9953e673363aabac4edd6cdfc0d096908f
1.15.02019-02-24T10:02:42.006857ZDownload23f5f06ce955e3b38286c1079f71365425e2a492e1884c85210c94139a390dc1
1.16.02019-02-26T21:36:32.599411ZDownloadadfc569cdc12f374f2d2b7999f06e98b68f2530c54a2b66a07ef3b56b3ffc95b
1.17.02019-05-10T13:24:10.127584ZDownload90715e4a4599ee04a84c52daf7efbf8efa876eceeae1cde37a7e52e4d0bab70e
1.18.02019-07-08T21:13:14.112276ZDownload06155c81c4b0497d7193275f9bb5ac88f26bcbd1af030c4622c5b9e5d4898365
1.18.12019-10-25T06:27:35.255748ZDownload08443d6f2b15508163d2ccc92e816db00184e6c6486b667d17898de2f14a03bb
1.18.22019-10-25T20:17:27.429489ZDownloadd79e2fa85494671c0e77d2603f887d320be1d54cc3e3a9269217c6e1fb953317
2.0.02019-12-14T19:01:45.903362ZDownload6250a80ab1316e3879bf013459ca702d08ce8317f24cf51f237f165fa3a721d0
2.0.12019-12-14T19:24:44.076711ZDownloadbdee0665564a3bed1eb5825e73f3d5fa77c7f069999adf62400e7a36ef7f1a20
2.1.02020-01-01T12:30:17.405293ZDownload5a15f85ae28022efc41c5e1512a7b065e78cb997480d08aca8a960ed1546031a
2.2.02020-01-01T13:25:02.826333ZDownload45f11eaeabc597eb635b9dc772863bd5427db22319b0738b4acee9443dd19d1f
2.3.02020-05-21T11:06:37.502805ZDownload2df9a5775e2536a8017fdaa0e2f1c758e04e91b634e39cf90f0b498c50c806f4
2.3.12020-05-21T11:11:31.740159ZDownload83f8f5eb56f4256283e43139e52ea70e5768048e815e238e9d24f14c0f8e10cd
2.4.02020-06-01T15:29:57.516109ZDownload6f51929d9eb8feeaa3d425dc22268a069e87348107a3ed0b948676692f0f57b9
2.5.02020-07-04T14:04:32.660433ZDownload2de13a96cf82d5538ecff60f3de00dfc5c8e8762c06e93a910c953ee415abed4
2.6.02020-07-18T11:21:13.990400ZDownload0ab9cf5a3eeee2ed4d31fd3280a5b475e8164a52051abb06caf4622f32e11a68
2.7.02020-08-04T15:45:09.630316ZDownloadcaa4efdf46ed0e8392068964729e49f55982ba89823135b5b3f42e05fba71c41
2.8.0-nullsafety2020-09-06T14:27:34.861371ZDownload744ee5f8df9c8672ab28aca1b18f79fe974c25220223b09a5e8c5cfbda4d4421
2.8.02020-09-28T10:47:40.280257ZDownload3d63c06297a071436ba2bfbb1a20506dc88c3c5a266b80322ea3fdefca0a6231
3.0.0-nullsafety2020-10-06T12:17:10.851564ZDownload768d231cf2ccb2c101e6aedacdc05afd1b6e815598a675c06434a220036f0ab5
3.0.0-nullsafety.12020-10-29T12:09:24.113309ZDownload144f662d8a7005a5d2353e7dcd95aa53c8a5e7b1ba384da8e1d86b19832ec6c1
3.0.0-nullsafety.22020-11-21T07:49:40.748799ZDownloadc979cc8a64b647ec8418657d6f52d09c28a95f726b927dc4744101e84ed0aa6f
3.0.0-nullsafety.32020-12-04T21:36:17.684226ZDownloadf5de896257f3c06f1648bf5d677bdece2d22d384c215b4e2ac1f868860620ef4
3.0.0-nullsafety.42020-12-06T12:30:37.109815ZDownloadff99d1e42bdd6d712b260bdcfeb6c12a4b8bb3bab1db269d36f5066e1df2f0f7
3.0.0-nullsafety.52020-12-13T09:18:17.996036ZDownloadb38abecc4ff2f59c82e77011efa9ee421f93e0d729cbaa77321018d1a6e6fd04
3.0.0-nullsafety.62020-12-25T10:47:11.655752ZDownload8b929cb73d780c585b457624ffee1fbd668eb3400343f721d3593f0c59584294
3.0.02021-02-17T20:45:33.177158ZDownload537e19f88cbfe9a5897a3d35b427109c4e5b9a8b94df4ad7fd97d4e5a3dffcd4
3.0.12021-02-19T13:41:26.900210ZDownload5dff5f5eae8480f7006b52d5c5ac5f5a38d292719b7af6b5da285d9110e201be
3.1.02021-06-27T13:45:05.312197ZDownload0e5578e3d52d88954652ccad832c2307786370c4a6f3a583a16736e17a86337c
3.2.02021-09-07T18:50:58.151344ZDownloadc42d0b908847729dfcaa4d696be3acc3c643587eed79634244c7ea266516abae
3.2.12021-09-08T10:05:33.824756ZDownloadf599a38a871976f164d389e22c3e0609de707400e02f90a1484e3915ffcce18d
3.3.02021-09-10T17:46:18.419764ZDownloadeeaefcad761ad4101e7c8ea237202c6b66fc52dab5fe0cd27689ec0d44f5b1ef
3.4.02021-12-25T05:10:53.622783ZDownloadceede94f8598962313bfe599e3b2251f69f86c632a27f1d97550e933cb097a37
3.5.02022-02-27T17:47:12.026496ZDownload7fd894902d4504046890a16c454d907264edb9a08836c34163bdd4ccd124a403
3.6.02022-06-18T21:47:29.390175ZDownload3e48a16fa91e8c872593ef569f50a5648888a6e197f5ba3f7b6290447de1f26b
3.7.02022-06-19T11:31:13.762199ZDownloadc29b3174666dd77ffa7306a4693da816af230a050aeb5ab2d5d9df7e1981826f
3.7.12022-06-23T16:02:10.479423ZDownload791ddaea8632aa74a52697fd8ba54b9727f7fc08f114d31dc971db5997448c19
3.8.02022-06-23T15:55:17.034034ZDownload3f77263fe4adbdd932fda477a8e5e1bbc2a3bd61b73569fe364eb483af80b831
3.8.12022-09-04T15:05:31.589100ZDownloade3d1e7633d779db007c37e5ec516f75d768f5b1f42e3f5311b2d0968ca1416fc
3.8.22022-09-04T15:50:17.092524ZDownload375f4b2f19940cc54e68446cd4986d2d85c34786841b8d75057b3fe60e031e3d
3.8.32022-09-11T07:39:49.702498ZDownloadb97a0f6de861e66330041750e152e3f9086db906df1efea4ee08ef175214cfb2
3.8.42022-09-11T12:57:19.142635ZDownload3e82576b312409763ccfda93306c71b370787003a4c217ea1e766be5b082f664
3.8.52022-09-12T10:12:17.117681ZDownloadfd60723e265f16ac36380d31633439ae14fb433f827815546297550082735d7a
3.9.02022-11-27T03:21:33.640579ZDownload9a4a26c4569a96499de3d2e14c5c146ddd536981ae6281ff678a188afa58510f
3.9.12022-12-10T17:27:35.818288ZDownloaddde79beb689b9c1c72c82eef49751d58bcaa591445b569e064b09d8417185f88
3.9.22022-12-12T08:02:34.421587ZDownloadd86e543383f4f52186c3f433e60136c3aa7db322031e868bb4e7bca6fbe87237
3.9.32022-12-15T12:54:09.418396ZDownload3dea13f12130ec48e617b1fe39a4ec03175156b11eaad02c1714e5cb8b18915b
3.9.42022-12-17T09:35:36.926842ZDownload838a907c04b77b37c10f919cecf5c3ed851833775c5dbbc0eeea454c4b284b4f
3.9.52022-12-18T14:12:38.592022ZDownload01dd74e1b794fcf5b1c84ec9c6e2f5d9ec86cc210c1712501ab01073bd0ab17b
3.10.02023-02-19T11:07:48.809539ZDownloadac5565aa35eed019570db100ae909a7eb9ce70f87e557ce136d8b2f9e9ec07de
3.10.12023-02-19T11:16:22.314145ZDownload14853a9f8d138f3573ffc9d4a440bb848129b3fc9530113226e2220baa4dc428
3.10.22023-02-24T20:01:44.613510ZDownloadad9207a4abefaff7099e8da509ba2adab4cfa4203c2ebbfc35070f88e18b7c82
4.0.02023-06-24T13:29:18.704934ZDownload74d7379587be84284e9e1a15b4c296351bfdac0370bf2e55de996f13c93a2dc3
4.0.12023-08-06T15:14:13.947408ZDownloada06e9e78bd1446612c9fbb033612176f252bcb9ab905a778202d9f8212000c5a
4.1.02023-12-02T16:18:39.552972ZDownload38e3dbee07616254e26a88c0bda28505f158ce34893fe8519265047582e942df
4.2.02023-12-29T08:29:13.296056ZDownloadb9372ef11909cb88a7a29e221d96fbe17eb04394f022e374a4299a6c72946108
4.3.02024-07-14T16:41:23.352630ZDownload55cb4f276d4e75249748cf06eed0dc96905d97d466e9b138566a124c0b3a4ebd
4.4.02024-10-22T15:44:29.089057ZDownload7589f39d4e5858213e80454844c6f0b1ef58e254e6614fe387e2029fc325efad
4.5.02024-12-25T06:46:29.070497ZDownloadd3908d710f78ee5470d2ae9d7599a11aeb00a17909cc36cbd0f23a0b659ca375
4.6.02025-06-08T15:34:48.286084ZDownload30acaca07e155ea9b795db8ce50099dfdb96a42441f3d1a8a330e6460833cbf4
4.6.12025-08-16T09:42:56.779710ZDownload3850edf0e3f5f89709eef8a007ac3a6d4dbaef10b01fd25c66dfd5b7a62e1872
4.7.02025-12-12T20:22:36.280772ZDownloade252628d2183cc09539b686abfbd9d8302675959b89a2a8146f5f4baca6ac5ba
4.8.02026-10-23T19:29:38.530589ZDownloadebd845356882f599f2fbfc2dea77b05b4ff0948dd5681544f3d0b755c246562b
4.8.12026-10-24T06:34:05.766694ZDownload53e60f96fe1cd1468edf45ba2424f09f0a339db9eda90ba2da65e6485cd70cf7
4.8.22026-10-24T13:17:46.574501ZDownload59f5986cf2add0912842a5d705b1a2a91aab6e945b09fba8f38f87cff1b813d0

Dependencies

collection "^1.14.0"