dart-lang / collection

The collection package for Dart contains a number of separate libraries with utility functions and classes that makes working with collections easier.

Home Page:https://pub.dev/packages/collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Dart 2.0 collection operators

matanlurey opened this issue · comments

See TODOs in https://github.com/dart-lang/collection/blob/master/lib/src/wrappers.dart.

Internal users are hitting this when attempting to use .cast and friends:

  • Map.addEntries

  • Map.entries

  • Map.map

  • Map.cast

  • Map.retype

  • Map.update

  • Map.updateAll

  • Map.removeWhere

  • List.cast

  • List.+

  • Iterable.followedBy

  • Iterable.retype

  • Iterable.whereType

  • Iterable.singleWhere (orElse)

  • Iterable.indexWhere

  • Iterable.lastIndexWhere


NOTE: Adding tests for every one of these for everyone of the implementing classes... Not a fun experience. I'm going to be skipping TypeSafeX and DelegatingX when writing tests: #81.

I'll start tackling as it is blocking internal users.