Yeah, it would make my life easier, but I need all...
# getting-started
m
Yeah, it would make my life easier, but I need all the references to print this on a chart (dates on x-axis, values on y-axis) 😁
a
And what exactly are you having difficulty with right now?
m
No difficulties
I'm quite new to Kotlin, so when I code something, there's usually a more idiomatic way of doing things. So I wanted to know if someone could suggest something.
a
the
asSequence()
is unnecessary and using
LocalDate.now()
(you'll get a different time back everytime you call it) seems problematic
m
I use other operations to trim the list before the main logic, I edited that out but forgot to remove the
asSequence
i will refactor the
LocalDate.now()
bit, thanks
👍 1
a
meh, the
LocalDate.now
would only give different date if it happened to go over midnight... but ye