4 ms·
Because "to" isn't actually syntax at all. It's an infix function that creates a Pair. You can alt-click it in the IDE to go to the definition.
by mike_hearn 10y ago
Because "to" isn't actually syntax at all. It's an infix function that creates a Pair. You can alt-click it in the IDE to go to the definition.
- shallot_router 10y ago`->` in Scala is also just a method, but I think it's fair to call such things syntax even if they're not true "baked-in" language syntax.