danny
08/03/2017, 7:45 PMuser
08/03/2017, 7:47 PMbgoetzmann
08/03/2017, 8:01 PMwith
function that has this signature:
```bgoetzmann
08/03/2017, 8:04 PMinline fun <T, R> with(receiver: T, block: T.() -> R): R
concerning block
parameter, is it true to say that it is an anonymous extension function on T type that takes no parameter and returns a reference of type R?kirillrakhman
08/03/2017, 8:17 PMbgoetzmann
08/03/2017, 8:58 PMoscarg798
08/03/2017, 9:01 PMoscarg798
08/03/2017, 9:02 PMoscarg798
08/03/2017, 9:02 PMoscarg798
08/03/2017, 9:02 PMoscarg798
08/03/2017, 9:06 PMoscarg798
08/03/2017, 9:06 PMoscarg798
08/03/2017, 9:06 PMYuri
08/03/2017, 9:13 PMremove(int position)
method
class RealmList<E extends RealmModel> extends AbstractList<E> implements OrderedRealmCollection<E>
overrides public E remove(int index)
method from AbstractList
When I’m trying to call it from kotlin I get compilation error as remove
method resolves to MutableCollections.kt
where it is deprecated with Error level
val list = RealmList<Smth>()
list.remove(0)
Error:(31, 19) Using 'remove(Int): T' is an error. Use removeAt(index) instead.
Is this a bug and is there any workaround for the issue?agrosner
08/03/2017, 10:15 PM-=
?ilya.gorbunov
08/03/2017, 10:29 PMremoveAt(position)
redrield
08/03/2017, 10:51 PMredrield
08/03/2017, 10:51 PM-1..1
redrield
08/03/2017, 10:51 PM-2..2
, 4 becomes -1..2
etckarelpeeters
08/03/2017, 10:52 PM-(n-1)/2 .. n/2
redrield
08/03/2017, 10:54 PMdumptruckman
08/04/2017, 1:13 AMjw
08/04/2017, 1:14 AMdumptruckman
08/04/2017, 1:14 AMjw
08/04/2017, 1:14 AMdumptruckman
08/04/2017, 1:15 AMdumptruckman
08/04/2017, 1:15 AMdumptruckman
08/04/2017, 1:15 AMjanvladimirmostert
08/04/2017, 3:11 PMdragas
08/04/2017, 5:37 PMfun main
?