« first day (984 days earlier)      last day (3514 days later) » 

3:29 AM
I believe I've found a bug in simple list operations in Mathematica 10.

Does anyone see why the following only produces an error in the middle (2nd) line - only when it is of length 2? The error disappears if another similar element is added and it doesn't make sense!
{{{1,2,3,4},244},{{1,2,3,7},514},{{1,2,3,5},243}}/.{a_List,count_}:>a
{{{1, 2, 3, 4, 5}, 726}, {{1, 2, 3, 7, 6}, 275}} /. {a_List, count_} :> a
{{{1, 2, 3, 4, 5, 6}, 587}, {{1, 2, 3, 5, 4, 8},323}, {{1, 2, 3, 6, 8, 7}, 91}} /. {a_List, count_} :> a
Oh, I suppose it's because the contained lists are also of length 2, so it must get confused by that. Not sure how to resolve that but don't know that it's worth an actual question... hmm
 
 
4 hours later…
8:08 AM
@Ghersic You just have to change count_ to count_Integer
 
 
5 hours later…
1:23 PM
Getting into 10.000!!
 
 
6 hours later…
7:37 PM
@Murta I forgot to vote on some of your answers. Made good of that :). Congrats!
 
 
2 hours later…
9:11 PM
@Sjoerd tks! Now with 10k!
 

« first day (984 days earlier)      last day (3514 days later) »