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

Method pair

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

Returns a two-element tuple.

(Object a, Object b)

Source from the content-addressed store, hash-verified

91
92 /** Returns a two-element tuple. */
93 public static Tuple pair(Object a, Object b) {
94 // Equivalent to of(a, b) but avoids variadic array allocation.
95 return wrap(new Object[] {a, b});
96 }
97
98 /** Returns a three-element tuple. */
99 public static Tuple triple(Object a, Object b, Object c) {

Callers 3

enumerateMethod · 0.95
popitemMethod · 0.95
itemsMethod · 0.95

Calls 1

wrapMethod · 0.95

Tested by

no test coverage detected