Re:FastDoubleParser: Java port of Daniel Lemires fast_double...
by mjcohen on Monday March 22, 2021 @07:51PM
(#26549107)
I haven't used kotlin, but where is length defined? Should it be a parameter to the function?
[ Parent
| on HN ]
Re:FastDoubleParser: Java port of Daniel Lemires fast_double...
by pirocks on Monday March 22, 2021 @09:08PM
(#26549712)
The above is an extension function(which is basically a member function of class not written in that class), which has an implicit `this` parameter. In other words `length` is actually `this.length`, just as it would be in a regular method.