Lines Matching defs:stringElems
558 type stringElems struct { struct
559 s String
560 ords bool
568 func (si stringElems) String() string {
575 func (si stringElems) Type() string { return "string.elems" }
576 func (si stringElems) Freeze() {} // immutable
577 func (si stringElems) Truth() Bool { return True }
578 func (si stringElems) Hash() (uint32, error) { return 0, fmt.Errorf("unhashable: %s", si.Type()) }
579 func (si stringElems) Iterate() Iterator { return &stringElemsIterator{si, 0} }
580 func (si stringElems) Len() int { return len(si.s) }
581 func (si stringElems) Index(i int) Value {