- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 947 for asSlice (0.2 sec)
-
samples/bookinfo/src/productpage/static/tailwind/tailwind.css
|e===i.length-1?[i,void 0]:rt(i)&&!i.includes("]/[")?[i,void 0]:[i.slice(0,e),i.slice(e+1)]}function Ct(i){if(typeof i=="string"&&i.includes("<alpha-value>")){let e=i;return({opacityValue:t=1})=>e.replace("<alpha-value>",t)}return i}function Uu(i){return L(i.slice(1,-1))}function Ub(i,e={},{tailwindConfig:t={}}={}){if(e.values?.[i]!==void 0)return Ct(e.values?.[i]);let[r,n]=Vu(i);if(n!==void 0){let a=e.values?.[r]??(rt(r)?r.slice(1,-1):void 0);return a===void 0?void 0:(a=Ct(a),rt(n)?Ie(a,Uu(n)):...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 28 14:48:01 UTC 2024 - 357.1K bytes - Viewed (1) -
src/index/suffixarray/suffixarray.go
} else { // re-use existing buffers x.data = x.data[0:n] x.sa = x.sa.slice(0, n) } // read data if _, err := io.ReadFull(r, x.data); err != nil { return err } // read index sa := x.sa for sa.len() > 0 { n, err := readSlice(r, buf, sa) if err != nil { return err } sa = sa.slice(n, sa.len()) } return nil } // Write writes the index x to w.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.5K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/internal/alias/alias_purego.go
// because the unsafe package and cgo are disallowed. import "reflect" // AnyOverlap reports whether x and y share memory at any (not necessarily // corresponding) index. The memory beyond the slice length is ignored. func AnyOverlap(x, y []byte) bool { return len(x) > 0 && len(y) > 0 && reflect.ValueOf(&x[0]).Pointer() <= reflect.ValueOf(&y[len(y)-1]).Pointer() &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.2K bytes - Viewed (0) -
src/go/doc/testdata/issue22856.go
func NewPointerArray() [1]*T { return [1]*T{&T{}} } // NewSliceOfSlice is not a factory function because slices of a slice of // type *T are not factory functions of type T. func NewSliceOfSlice() [][]T { return []T{[]T{}} } // NewPointerSliceOfSlice is not a factory function because slices of a // slice of type *T are not factory functions of type T. func NewPointerSliceOfSlice() [][]*T { return []*T{[]*T{}} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 12 16:37:37 UTC 2018 - 1.1K bytes - Viewed (0) -
src/go/parser/testdata/sort.go2
func (s orderedSlice[Elem]) Less(i, j int) bool { return s[i] < s[j] } func (s orderedSlice[Elem]) Swap(i, j int) { s[i], s[j] = s[j], s[i] } // OrderedSlice sorts the slice s in ascending order. // The elements of s must be ordered using the < operator. func OrderedSlice[Elem comparable](s []Elem) { sort.Sort(orderedSlice[Elem](s)) } type sliceFn[Elem any] struct { s []Elem
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 19:44:06 UTC 2020 - 902 bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/namedresources.go
} // NamedResourcesIntSlice contains a slice of 64-bit integers. type NamedResourcesIntSlice struct { // Ints is the slice of 64-bit integers. // // +listType=atomic Ints []int64 `json:"ints" protobuf:"bytes,1,opt,name=ints"` } // NamedResourcesStringSlice contains a slice of strings. type NamedResourcesStringSlice struct { // Strings is the slice of strings. // // +listType=atomic
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 12:18:45 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad.cc
auto x = op.input(0); auto a = op.input(1); // [Rank(x), 2] // Takes a slice of a. The 1st column. [Rank(x), 1]. auto size = Stack(scope, {Rank(scope, x), 1}); auto pad_before = Slice(scope, a, {0, 0}, size); // Make it a 1-D tensor. auto begin = Reshape(scope, pad_before, {-1}); grad_outputs->push_back(Slice(scope, grad_inputs[0], begin, Shape(scope, x))); grad_outputs->push_back(NoGradient());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 31.7K bytes - Viewed (0) -
pkg/test/framework/resource/context.go
// GetResource accepts either a *T or *[]*T where T implements Resource. // For a non-slice pointer, the value will be assigned to the first matching resource. // For a slice pointer, the matching resources from this scope and its parent(s) will be appended. // If ref is not a pointer, an error will be returned. // If there is no match for a non-slice pointer, an error will be returned. GetResource(ref any) error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.h
}; // Unroll split into a bunch of slice ops. struct UnrollSplit : public OpRewritePattern<TFL::SplitOp> { using OpRewritePattern<TFL::SplitOp>::OpRewritePattern; LogicalResult matchAndRewrite(TFL::SplitOp split_op, PatternRewriter& rewriter) const override; }; // Unroll splitv into a bunch of slice ops. struct UnrollSplitV : public OpRewritePattern<TFL::SplitVOp> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 03 16:37:16 UTC 2022 - 4.3K bytes - Viewed (0) -
src/encoding/gob/decode.go
if safe < 0 { errorf("%s slice too big: %d elements", value.Type(), n) } value.Set(reflect.MakeSlice(value.Type(), safe, safe)) ln := safe i := 0 for i < n { if i >= ln { // We didn't allocate the entire slice, // due to using saferio.SliceCap. // Grow the slice for one more element. // The slice is full, so this should // bump up the capacity. value.Grow(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0)