You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
339 B

  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. package llrb
  5. type Int int
  6. func (x Int) Less(than Item) bool {
  7. return x < than.(Int)
  8. }
  9. type String string
  10. func (x String) Less(than Item) bool {
  11. return x < than.(String)
  12. }