6ab3adfd43
Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
12 lines
409 B
JavaScript
12 lines
409 B
JavaScript
//// [inferentialTypingWithFunctionTypeZip.ts]
|
|
var pair: <T, S>(x: T) => (y: S) => { x: T; y: S; }
|
|
var zipWith: <T, S, U>(a: T[], b: S[], f: (x: T) => (y: S) => U) => U[];
|
|
var result = zipWith([1, 2], ['a', 'b'], pair);
|
|
var i = result[0].x; // number
|
|
|
|
//// [inferentialTypingWithFunctionTypeZip.js]
|
|
var pair;
|
|
var zipWith;
|
|
var result = zipWith([1, 2], ['a', 'b'], pair);
|
|
var i = result[0].x; // number
|