MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / map

Function map

tensorboard/components/tf_backend/backend.ts:62–66  ·  view source on GitHub ↗

Just a curryable map to make things cute and tidy.

(f: (x: T) => U)

Source from the content-addressed store, hash-verified

60}
61/** Just a curryable map to make things cute and tidy. */
62function map<T, U>(f: (x: T) => U): (arr: T[]) => U[] {
63 return function (arr: T[]): U[] {
64 return arr.map(f);
65 };
66}
67/**
68 * This is a higher order function that takes a function that transforms a
69 * T into a G, and returns a function that takes TupleData<T>s and converts

Callers 15

initMethod · 0.85
test_parse_vertexMethod · 0.85
test_parse_faceMethod · 0.85
createTimedRepeaterFunction · 0.85
onDebuggerDataPollMethod · 0.85
onCoreReloadMethod · 0.85
loadDebuggerRunsMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_parse_vertexMethod · 0.68
test_parse_faceMethod · 0.68