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
Andreas Sinz
10/09/2018, 4:50 PM
And what exactly are you having difficulty with right now?
m
Matheus
10/09/2018, 4:58 PM
No difficulties
Matheus
10/09/2018, 5:00 PM
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
Andreas Sinz
10/09/2018, 5:04 PM
the
asSequence()
is unnecessary and using
LocalDate.now()
(you'll get a different time back everytime you call it) seems problematic
m
Matheus
10/09/2018, 5:32 PM
I use other operations to trim the list before the main logic, I edited that out but forgot to remove the
asSequence
Matheus
10/09/2018, 5:38 PM
i will refactor the
LocalDate.now()
bit, thanks
👍 1
a
Alowaniak
10/09/2018, 8:14 PM
meh, the
LocalDate.now
would only give different date if it happened to go over midnight... but ye