Creating sum, min, max properties on iterators in Dart

前端 未结 0 1263
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-15 23:48

I have the following, which works for ints:

extension IterableInt on Iterable {
  int get max => reduce(math.max);
  int get min =&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题