jimn
02/07/2020, 5:53 AMA.(B)->C
when i came upon a random refactoring intent having reverted it after testing it and seeing it worked all the same. https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver as it turns out is a real thing.
so there are a few quirks about stdlib, gaps between say list and array which appeear to be interchangable but are not(unless i write them). and likewise for the primitive arrays and the object arrays.
is there an undercurrent of some java-generics like algebra that spoils it for writing a suite of generic extensions for the existing base kotlin libs?fun<X,T,R> X<T>.iterator(Unit)->(R)
exist for instance for filling the gap between iterable and sequence?ilya.gorbunov
02/07/2020, 6:39 AMjimn
02/07/2020, 2:58 PMNo, it can be achieved neither with generics nor the other language constructions.
is that a double or triple negative?
does this mean "cannot" be achieved?Ruckus
02/07/2020, 4:44 PMjimn
02/08/2020, 7:06 AM