| OLD | NEW |
| 1 /** Misc things that were useful when porting the code from Python. */ | 1 /** Misc things that were useful when porting the code from Python. */ |
| 2 library utils; | 2 library utils; |
| 3 | 3 |
| 4 import 'dart:collection'; | |
| 5 import 'constants.dart'; | 4 import 'constants.dart'; |
| 6 | 5 |
| 7 typedef bool Predicate(); | 6 typedef bool Predicate(); |
| 8 | 7 |
| 9 class Pair<F, S> { | 8 class Pair<F, S> { |
| 10 final F first; | 9 final F first; |
| 11 final S second; | 10 final S second; |
| 12 | 11 |
| 13 const Pair(this.first, this.second); | 12 const Pair(this.first, this.second); |
| 14 | 13 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 114 |
| 116 last = match + 1; | 115 last = match + 1; |
| 117 } | 116 } |
| 118 | 117 |
| 119 result.write(format.substring(last, format.length)); | 118 result.write(format.substring(last, format.length)); |
| 120 format = result.toString(); | 119 format = result.toString(); |
| 121 }); | 120 }); |
| 122 | 121 |
| 123 return format; | 122 return format; |
| 124 } | 123 } |
| OLD | NEW |