The problem with top-level functions is that they ...
# mathematics
a
The problem with top-level functions is that they produce a lot on confusion. I decided, that I do not want them in the library core. Each user can provide his own local extensions. For example look here: https://github.com/mipt-npm/kmath/blob/f706122266e579ffd93957b83f6995992c34a29e/kmath-core/src/commonTest/kotlin/scientifik/kmath/misc/AutoDiffTest.kt#L12 I have generalized code for any types which could be used in a variety of ways, then I have a test suite which is designed for double-based top-levels. Now all I need is to define two additional functions in my scope and everything starts to work.