3 ms·
I was on a code review where someone imported an entire library just to use the library's Pair<> class, which Java does not have. But it is literally a one lin
by fnord77 1y ago
I was on a code review where someone imported an entire library just to use the library's Pair<> class, which Java does not have.
But it is literally a one liner to declare a Pair<> type in java
```
record Pair<S, T>(S first, T second) {}
```