News for hackers. Stuff that matters.
Re:A generically typed pipe function in TypeScript by upzylon on Monday August 08, 2022 @07:49AM (#32384418)
It's just an identifier like any other defined in types.ts: https://github.com/MathisBullinger/froebel/blob/main/types.t...

It's defined as

  type λ<TA extends any[] = any[], TR = any> = (...args: TA) => TR;
meaning λ is just any function and λ<[number], string> would be the type of a function that takes a number as its only argument and returns a string.
Re:A generically typed pipe function in TypeScript by dclowd9901 on Wednesday August 10, 2022 @01:38AM (#32408137)
Ok that’s what I thought, thanks!