Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for subslice (0.04 sec)

  1. src/bytes/bytes.go

    // SplitAfterN slices s into subslices after each instance of sep and
    // returns a slice of those subslices.
    // If sep is empty, SplitAfterN splits after each UTF-8 sequence.
    // The count determines the number of subslices to return:
    //   - n > 0: at most n subslices; the last subslice will be the unsplit remainder;
    //   - n == 0: the result is nil (zero subslices);
    //   - n < 0: all subslices.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. src/bytes/iter.go

    }
    
    // SplitSeq returns an iterator over all subslices of s separated by sep.
    // The iterator yields the same subslices that would be returned by [Split](s, sep),
    // but without constructing a new slice containing the subslices.
    // It returns a single-use iterator.
    func SplitSeq(s, sep []byte) iter.Seq[[]byte] {
    	return splitSeq(s, sep, 0)
    }
    
    // SplitAfterSeq returns an iterator over subslices of s split after each instance of sep.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top