more than anything, i want JB to expand on the `ra...
# announcements
h
more than anything, i want JB to expand on the
rangeTo ..
operator to add descending and unbounded functionality, e.g.
list[3..]
2
g
Or just
list.drop(3)
2
h
yeah, but mine is prettier and easier to type!
oh, well on dvorak. might be a pain on qwerty
g
Also do not require new specialist syntax
g
unbounded & partial ranges would be nice..
h
i believe that
list[..3]
and
list[3..]
are more intuitive and immediately comprehensible than
list.drop(3)
and
list.take(3)
. especially when in virtually all programming languages, calling
drop
on a collection will remove 3 elements from the collection, not return a sub list. maybe i'm wrong, though.
👍🏻 2