Lasse R.H. Nielsen
Lasse R.H. Nielsen
Hmm. The even easier version is to make `int` itself iterable. Effectively making integers into [von Neumann ordinals](https://en.wikipedia.org/wiki/Set-theoretic_definition_of_natural_numbers) of themselves. Well, technically they should be sets. ```dart for (var i...
Having a method which flattens a `Stream` into a `Stream` would be fine, but embedding it into `StreamQueue` would probably not be worth it. The use case is too specialized...
Interestingly, we can actually have both of: ```dart extension X1 on Stream { Stream flatten() async* { await for (var s in this) yield* s; } } extension X2 on...
A `library;` declaration would do exactly the same thing as no library declaration, except that you could hang annotations and dartdoc on it. It's a declaration representing the library itself,...
You're suggesting that in a file with no `library` declaration, the last "empty line" (probably not counting lines containing comments or comment delimiters, or a leading script tags, but possibly...
It's technically a breaking change, but I'm open to trying it. It's an implementation class, nobody should be extending it. I'm also not particularly fond of the class to begin...
You can use both, you just have to use a prefix for one of them. I can see why `collection.IterableExtension(o).sortBy` is less convenient than `o.sortBy`, but mixing and matching extension...
Sounds reasonable.
This is equivalent to https://github.com/dart-lang/sdk/issues/49900. The biggest problem is the typing. We can create an extension method like: ```dart extension X on Iterable { Iterable intersperse(T separator, {bool beforeFirst =...
The `package_config` package doesn't handle symbolic links. It's completely ignorant of them, and just works symbolically with paths and (mostly) URIs. I don't think it does any attempt to get...