uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.53k stars 107 forks source link

Add "Median" uiuism #471

Closed bkDJ closed 5 months ago

kaikalii commented 5 months ago

Thanks for this! I think maybe ÷2/+⊏⊟⊃⌊⌈÷2-1⧻. would be preferable?

bkDJ commented 5 months ago

What do you think?

kaikalii commented 5 months ago

Ah, then perhaps ÷2/+⊏⊟⊃⌊⌈÷2-1⧻⟜(⊏⍏.). I don't think empty should return NaN. It should error.

bkDJ commented 5 months ago

The latest commit should make it ok 🙂