diff options
author | Ruediger Klaehn <rklaehn@gmail.com> | 2012-08-25 00:27:55 +0200 |
---|---|---|
committer | Ruediger Klaehn <rklaehn@gmail.com> | 2012-08-25 00:27:55 +0200 |
commit | ace7a61e663e8369cc50e527c990ee4c3751cb89 (patch) | |
tree | bf6553943ed416fbd73b5f94bf9c768dd3f2254d /test/files/run/t6261.scala | |
parent | 460d4f22b04ac1a29a73af16b750252ddce74579 (diff) | |
download | scala-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