3 ms·
It'd be easier to follow if you could provide a link to the GitHub line you're looking at, but most likely the `money` function being called is a second extensi
by lolinder 2y ago
It'd be easier to follow if you could provide a link to the GitHub line you're looking at, but most likely the `money` function being called is a second extension method of the Number class, which means that it implicitly gets the Number object as `this` and presumably uses it to build the Money.
- zellyn 2y agohttps://github.com/eriksencosta/money/blob/4bef95a1d2158e3088d832217d46407bad87c7ba/money/src/main/kotlin/com/eriksencosta/money/Number.kt#L37 https://github.com/eriksencosta/money/blob/4bef95a1d2158e308...
- lolinder 2y agoYeah, that's just an infix function that provides some default parameters to this extension method: https://github.com/eriksencosta/money/blob/4bef95a1d2158e3088d832217d46407bad87c7ba/money/src/main/kotlin/com/eriksencosta/money/Number.kt#L79 https://github.com/eriksencosta/money/blob/4bef95a1d2158e308...