summaryrefslogtreecommitdiff
path: root/test/files/run/t6261.scala
diff options
context:
space:
mode:
authorRuediger Klaehn <rklaehn@gmail.com>2012-08-25 00:27:55 +0200
committerRuediger Klaehn <rklaehn@gmail.com>2012-08-25 00:27:55 +0200
commitace7a61e663e8369cc50e527c990ee4c3751cb89 (patch)
treebf6553943ed416fbd73b5f94bf9c768dd3f2254d /test/files/run/t6261.scala
parent460d4f22b04ac1a29a73af16b750252ddce74579 (diff)
downloadscala-ace7a61e663e8369cc50e527c990ee4c3751cb89.tar.gz
scala-ace7a61e663e8369cc50e527c990ee4c3751cb89.tar.bz2
scala-ace7a61e663e8369cc50e527c990ee4c3751cb89.zip
Made ListMap.tail O(1) instead of O(N)
That way it is possible to check if a ListMap has one element by checking x.tail.isEmpty. Size is O(1), so size==1 won't do!
Diffstat (limited to 'test/files/run/t6261.scala')
0 files changed, 0 insertions, 0 deletions