F# Custom Operator Shenanigans
In F# I can define a function like this let (<+>) x y = x + y and call like this let z = 5 <+> 6 I can even do something like this let (<+++>) x y z = x y z let p = (((fun x -> fun y -> x + y) <++> 5) 6
Кодовый мем о F#, где программист определяет собственные операторы и использует их для необычного вызова функций. Шутка в том, что синтаксис F# позволяет сделать обычное сложение и даже применение функций похожими на магическую операторную конструкцию. EN: A coding meme about F#, where the programmer defines custom operators and uses them for unusual function calls. The joke is that F# syntax lets ordinary addition and even function application look like magical operator syntax.
- @dev_meme / 604 2019-08-23
- Type
- image
- Size
- 361×282 · 14.2 KiB
- Mood
- nerdy, absurd
- Language
- en
- Added