github.com/ndau/noms@v1.0.5/go/types/list_leaf_sequence.go (about)

     1  // Copyright 2016 Attic Labs, Inc. All rights reserved.
     2  // Licensed under the Apache License, version 2.0:
     3  // http://www.apache.org/licenses/LICENSE-2.0
     4  
     5  package types
     6  
     7  type listLeafSequence struct {
     8  	leafSequence
     9  }
    10  
    11  func newListLeafSequence(vrw ValueReadWriter, vs ...Value) sequence {
    12  	return listLeafSequence{newLeafSequenceFromValues(ListKind, vrw, vs...)}
    13  }
    14  
    15  // sequence interface
    16  
    17  func (ll listLeafSequence) getCompareFn(other sequence) compareFn {
    18  	return ll.getCompareFnHelper(other.(listLeafSequence).leafSequence)
    19  }