Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [diff] [blame^] | 1 | // Copyright 2010 Petar Maymounkov. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style | ||||
3 | // license that can be found in the LICENSE file. | ||||
4 | |||||
5 | package llrb | ||||
6 | |||||
7 | type Int int | ||||
8 | |||||
9 | func (x Int) Less(than Item) bool { | ||||
10 | return x < than.(Int) | ||||
11 | } | ||||
12 | |||||
13 | type String string | ||||
14 | |||||
15 | func (x String) Less(than Item) bool { | ||||
16 | return x < than.(String) | ||||
17 | } |