3 ms·
The inversion is really cool, e.g. > f = λa λb concat ["Hello ",a," ",b,"!"] > f "Jane" "Doe" Hello Jane Doe! then, > g = f "Admiral" > invert g "Hello
by pgt 6mo ago
The inversion is really cool, e.g.
> f = λa λb concat ["Hello ",a," ",b,"!"]
> f "Jane" "Doe"
Hello Jane Doe!
then,
> g = f "Admiral"
> invert g "Hello Admiral Alice!"
Alice
- pgt 6mo ago@dang, pleaaase can we get proper markdown formatting on HN? I tried adding two spaces after each line, but I don't want paragraphs between code
- lupire 6mo ago4 spaces indent The inversion is really cool, e.g. > f = λa λb concat ["Hello ", a, " ", b, "!"] > f "Jane" "Doe" Hello Jane Doe! then, > g = f "Admiral" > invert g "Hello Admiral Alice!" Alice
- pgt 6mo agothx that looks much better, but I'll forget that syntax in the next 3 months. nowadays I am just casual commenter on HN spending points on contrarian views that I know will be downvoted and I know no one else will say it.