karelpeeters
12/08/2018, 3:18 PMmetaSum()
and value()
aren't really behaviors _ of_ Node
but more like operations on them.todd.ginsberg
12/08/2018, 3:18 PMtodd.ginsberg
12/08/2018, 3:28 PMketurn
12/08/2018, 7:12 PM.map {}.filterNotNull()
and it converted it to a .mapNotNull
for me.keturn
12/08/2018, 7:42 PMArray(childCount) { parseNode(tape) }ah, using the array initializer, I forgot about that one. I ended up with
(1..childCount).map { parseNode(tape) }and I felt a little weird about that use of range.
joelpedraza
12/08/2018, 8:04 PMjoelpedraza
12/08/2018, 8:04 PMjoelpedraza
12/08/2018, 8:05 PMjoelpedraza
12/08/2018, 8:59 PMjoelpedraza
12/08/2018, 9:00 PMketurn
12/08/2018, 9:14 PMword = input.get(start = 7, length=5)
that returns without copying?joelpedraza
12/08/2018, 9:30 PMketurn
12/08/2018, 9:33 PMJoris PZ
12/09/2018, 9:32 AMcurrentPlayer = (currentPlayer++) % numPlayers
does not do what I intended it to do.... And IDEA even warned me!karelpeeters
12/09/2018, 9:34 AMJoris PZ
12/09/2018, 9:55 AMandyb
12/09/2018, 10:29 AMkarelpeeters
12/09/2018, 11:19 AMjoelpedraza
12/09/2018, 11:45 AMJoris PZ
12/09/2018, 12:14 PMJoris PZ
12/09/2018, 12:15 PMJoris PZ
12/09/2018, 12:35 PMkarelpeeters
12/09/2018, 1:41 PMkarelpeeters
12/09/2018, 1:41 PMkarelpeeters
12/09/2018, 1:42 PMlittlelightcz
12/09/2018, 1:52 PMmutableListOf<Marble>()
which would be probably impossible to solve it with in a reasonable time since the number of elements would go as up as 7M. So today I've learned that making one's own "linked elements" implementation could do a lot 🙂 . Thanks once again for the inspiration!karelpeeters
12/09/2018, 1:55 PMLinkedList
at first, but that's a struggle since ListIterator
is akwardly defined as:
Note that the remove() and set(Object) methods are not defined in terms of the cursor position; they are defined to operate on the last element returned by a call to next() or previous().It looks like today is "write it yourself day"!
SiebelsTim
12/09/2018, 4:57 PM$ time ./build/bin/HelloWorld/main/release/executable/KotlinNative.kexe
The maximum score was 3148209772
/opt/buildAgent/work/4d622a065c544371/runtime/src/main/cpp/Memory.cpp:1150: runtime assert: Memory leaks found
Command terminated by signal 6
24.29user 1.36system 0:26.38elapsed 97%CPU (0avgtext+0avgdata 528480maxresident)k
0inputs+0outputs (0major+540609minor)pagefaults 0swaps
Gerard Klijs
12/09/2018, 5:05 PMtodd.ginsberg
12/09/2018, 5:25 PM