| 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 'constants.dart'; | 4 import 'constants.dart'; |
| 5 | 5 |
| 6 typedef bool Predicate(); | 6 typedef bool Predicate(); |
| 7 | 7 |
| 8 class Pair<F, S> { | 8 class Pair<F, S> { |
| 9 final F first; | 9 final F first; |
| 10 final S second; | 10 final S second; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 last = match + 1; | 115 last = match + 1; |
| 116 } | 116 } |
| 117 | 117 |
| 118 result.write(format.substring(last, format.length)); | 118 result.write(format.substring(last, format.length)); |
| 119 format = result.toString(); | 119 format = result.toString(); |
| 120 }); | 120 }); |
| 121 | 121 |
| 122 return format; | 122 return format; |
| 123 } | 123 } |
| OLD | NEW |