-
-
Save ileasile/1016cf09608df8f9b7f4cfe2d64625f6 to your computer and use it in GitHub Desktop.
True, agree with the above. *
and Any?
looks right as a broadest spectre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't actually need type parameters in any of the overloads except
(firstFrame,nextFrame)
and(seedValue,nextValue)
. They will just cause unnecessary inference problems with unclear errors, if user types something wrong or too complex, and they provide no actual benefit. We can just useFrame<*>
,Any?
andAny
.Also, I suggest declaring Frame as
class Frame<out T>(...)
.