Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [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 | } |