pythonic_utils 0.1.0 copy "pythonic_utils: ^0.1.0" to clipboard
pythonic_utils: ^0.1.0 copied to clipboard

Pythonic utils for Dart.

PythonUtils #

Pythonic useful functions and classes for Dart.

Features #

itertools #

Effective iteration.

  • next()
  • zip()
  • enumerate()

Pair #

Pair is a class that provides a way to store two objects as a single unit.

Range #

Numeric Sequence

strtools #

Useful functions for String type

  • strIter()
  • removeSuffix()
  • strJoin()
  • toString()

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

itertools #

next()

var it = [1, 2, 3].iterator;
print(next(it));
print(next(it));
print(next(it));
print(next(it));

Output:

>>> 1
>>> 2
>>> 3
trow StopIteration

zip()

var l1 = [1, 2, 3];
var l2 = [-1, -2, -3];
print(zip(l1, l2));

Output:

>>> [[1, -1], [2, -2], [3, -3]]

TODO: added more usage

2
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Pythonic utils for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on pythonic_utils