high 5?
{π©Β¨ βπ©}5 #q: can this be improved?
β¨ 5 5 5 5 5 β©
β₯Λ5 # right: high-five! left: low miss
β¨ 5 5 5 5 5 β©
(β’β£Β¨β)5 # synthetic operator: Tie Fighter
β¨ 5 5 5 5 5 β©
(ββΈβ)5 # emoticon: sad guy
β¨ 5 5 5 5 5 β©
The Tie Fighter is also good for observing part of an evaluation with a side effect:
1 + 2 + 3 # what is 2+3 though???
6
1 + (β’β£β’Show) 2 + 3
5
6
# not needed in the case of β’Show
1 + β’Show 2 + 3
5
6
# and needs more parens than before-right
1 + β’ShowβΈβ’ 2 + 3
5
6
breakup
@βΏ@ # what are you smiling about?
""
@β@ # did that question anger you?
""
@-@ # come on, aren't we in a relationship?
0
(J) The 'diamond' pseudo-operator: <>
This is a way to transform a list of boxed strings into a box of a table of characters.
]l =: <;._1 '/the sun/rises in/the south'
βββββββββ¬βββββββββ¬ββββββββββ
βthe sunβrises inβthe southβ
βββββββββ΄βββββββββ΄ββββββββββ
<LF joinstring l NB. wrong!
ββββββββββββββββββββββββββββ
βthe sun rises in the southβ
ββββββββββββββββββββββββββββ
<> l
βββββββββββ
βthe sun β
βrises in β
βthe southβ
βββββββββββ
BQN's stricter about fill elements:
>"the sun"βΏ"rises in"βΏ"the south"
Error: >: Incompatible element shapes (encountered shapes β¨7β© and β¨8β©)
at >"the sun"βΏ"rises in"βΏ"the south"
{>(βΒ΄β Β¨π©)βΒ¨π©} "the sun"βΏ"rises in"βΏ"the south"
ββ
β΅"the sun
rises in
the south"
β