TypeScripting the technical interview
richard-towers.com727 pointsby ycitm159 comments
type Nil = unique symbol
Which would ensure the Nil type wouldn't match with anything but itself. Unfortunately, the compiler doesn't allow unique symbol other than on const variables initialised with Symbol(). So I needed some meaningless symbols. type Nil = "nil"
But then it would have looked like the string meant something. let test_curry x y = x + y + x
You get the expected output function f(param) {
return test_curry(32, param);
} :help paragraph
[...] The default is "IPLPPPQPP TPHPLIPpLpItpplpipbp" [...]
(they're nroff macros, but pretty baffling to a beginner)