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