💾 Archived View for oortcloud.flounder.online › junk › Bsugar.gmi captured on 2024-02-05 at 09:25:42. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
x @ p $ d <=> x $ d @ p NB. floats to make defs work unicode subs . (size,sym)
to use an operator as an argument, wrap in parens: reduce (+)
to use a symbol as an operator, prefix with backslash: x \op y
everything is a binary operator; a traditional call foo(a,b,c) parses as:
<| ├─foo └─, ├─, │ ├─a │ └─b └─c
~~ <=> ==> $ $@ // !! :: ::= ?= := <- @ |> <| /> </ <> == <= >= < > ' ^ | & !: : \\ ?? $ ; , |.. ,.. '' ^^ || && ~ -> - + % / * ** %! %* %? # ` .
right associative:
==> $@ <| -> // ** #
(|) normally distributes through every operator in sight, the exceptions being:
<=> ==> ::= := <> == <= >= < > !: : ~ ->