Searched refs:arrayMap (Results 1 – 5 of 5) sorted by relevance
/third_party/typescript/tests/baselines/reference/ |
D | genericContextualTypes1.js | 34 const arrayMap = <T, U>(f: (x: T) => U) => (a: T[]) => a.map(f); constant 37 const f20: (a: string[]) => number[] = arrayMap(x => x.length); 38 const f21: <A>(a: A[]) => A[][] = arrayMap(x => [x]); 39 const f22: <A>(a: A[]) => A[] = arrayMap(identity); 40 const f23: <A>(a: A[]) => Box<A>[] = arrayMap(value => ({ value })); 63 var arrayMap = function (f) { return function (a) { return a.map(f); }; }; function 65 var f20 = arrayMap(function (x) { return x.length; }); 66 var f21 = arrayMap(function (x) { return [x]; }); 67 var f22 = arrayMap(identity); 68 var f23 = arrayMap(function (value) { return ({ value: value }); }); [all …]
|
D | genericContextualTypes1.types | 137 const arrayMap = <T, U>(f: (x: T) => U) => (a: T[]) => a.map(f); 138 >arrayMap : <T, U>(f: (x: T) => U) => (a: T[]) => U[] 163 const f20: (a: string[]) => number[] = arrayMap(x => x.length); 166 >arrayMap(x => x.length) : (a: string[]) => number[] 167 >arrayMap : <T, U>(f: (x: T) => U) => (a: T[]) => U[] 174 const f21: <A>(a: A[]) => A[][] = arrayMap(x => [x]); 177 >arrayMap(x => [x]) : (a: A[]) => A[][] 178 >arrayMap : <T, U>(f: (x: T) => U) => (a: T[]) => U[] 184 const f22: <A>(a: A[]) => A[] = arrayMap(identity); 187 >arrayMap(identity) : (a: A[]) => A[] [all …]
|
D | genericContextualTypes1.symbols | 202 const arrayMap = <T, U>(f: (x: T) => U) => (a: T[]) => a.map(f); 203 >arrayMap : Symbol(arrayMap, Decl(genericContextualTypes1.ts, 32, 5)) 230 const f20: (a: string[]) => number[] = arrayMap(x => x.length); 233 >arrayMap : Symbol(arrayMap, Decl(genericContextualTypes1.ts, 32, 5)) 239 const f21: <A>(a: A[]) => A[][] = arrayMap(x => [x]); 245 >arrayMap : Symbol(arrayMap, Decl(genericContextualTypes1.ts, 32, 5)) 249 const f22: <A>(a: A[]) => A[] = arrayMap(identity); 255 >arrayMap : Symbol(arrayMap, Decl(genericContextualTypes1.ts, 32, 5)) 258 const f23: <A>(a: A[]) => Box<A>[] = arrayMap(value => ({ value })); 265 >arrayMap : Symbol(arrayMap, Decl(genericContextualTypes1.ts, 32, 5))
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeInference/ |
D | genericContextualTypes1.ts | 36 const arrayMap = <T, U>(f: (x: T) => U) => (a: T[]) => a.map(f); 39 const f20: (a: string[]) => number[] = arrayMap(x => x.length); 40 const f21: <A>(a: A[]) => A[][] = arrayMap(x => [x]); 41 const f22: <A>(a: A[]) => A[] = arrayMap(identity); 42 const f23: <A>(a: A[]) => Box<A>[] = arrayMap(value => ({ value }));
|
/third_party/node/deps/npm/node_modules/lodash.without/ |
D | index.js | 105 function arrayMap(array, iteratee) { function 668 values = arrayMap(values, baseUnary(iteratee));
|