Join Slack
Powered by
what's the easiest way to remove the first element...
# announcements
d
Dalinar
12/21/2018, 6:01 PM
what's the easiest way to remove the first element from the
List
returned by
val lines = reply.split("\n")
?
s
Strum355
12/21/2018, 6:01 PM
is there a slice or sublist method? would probably be easiest
d
Dalinar
12/21/2018, 6:02 PM
ok thanks, subList looks what I was looking for
r
r4zzz4k
12/21/2018, 6:03 PM
.drop(1)
should also work.
👍 3
d
Dalinar
12/21/2018, 6:03 PM
even better
4
Views
Open in Slack
Previous
Next