Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
⊢⍝-∘0
Try it online!Try it online!
Trivial answer. Returns arg or ¯arg.
arg
¯arg
Saved 10 bytes by not being dumb (thanks Adám).
Altered the resulting 3-byter to a more fitting function.
⊢⍝-
Try it online!
-∘0
(⊢-∘0)⍝)⊢⊢⍝-∘0(
Trivial answer. Returns arg-0 or 0-arg¯arg.
arg-0
0-arg¯arg
(⊢-∘0)⍝)⊢-∘0(
Trivial answer. Returns arg-0 or 0-arg.
0-arg