https://kotlinlang.org logo
#announcements
Title
# announcements
c

cedric

12/10/2016, 4:06 PM
You can try to make a function or an extension function for
NodeHolder<T>
, which doesnt't take
T
as a parameter, for example,
NodeHolder<T>.bindAt(position: Int)
. Then you'll be able to call such extension on
NodeHolder<out T>
.
@ilya.gorbunov Your suggestion reminds me of Haskell's Phantom Types