MCPcopy Index your code
hub / github.com/bazelbuild/bazel / of

Method of

src/main/java/net/starlark/java/eval/Tuple.java:78–80  ·  view source on GitHub ↗

Returns a tuple containing the given elements.

(Object... elems)

Source from the content-addressed store, hash-verified

76
77 /** Returns a tuple containing the given elements. */
78 public static Tuple of(Object... elems) {
79 return wrap(Arrays.copyOf(elems, elems.length));
80 }
81
82 @Override
83 public StarlarkType getStarlarkType() {

Callers 14

testTupleToArrayMethod · 0.95
testConcatListsMethod · 0.95
testPrinterMethod · 0.95
testFormatPositionalMethod · 0.95
testDataTypeNamesMethod · 0.95
testLenMethod · 0.95
testPlusEqualsOnTupleMethod · 0.95
inplaceBinaryOpMethod · 0.95

Calls 2

wrapMethod · 0.95
copyOfMethod · 0.45

Tested by 10

testTupleToArrayMethod · 0.76
testConcatListsMethod · 0.76
testPrinterMethod · 0.76
testFormatPositionalMethod · 0.76
testDataTypeNamesMethod · 0.76
testLenMethod · 0.76
testPlusEqualsOnTupleMethod · 0.76