uiua-lang/uiua

Support fill for first

Closed this issue · 2 comments

Right now, fill seems to work for pick 0, but not first:

⬚1⊡0⊚ 0_0_0 # Returns 1
⬚1⊢⊚ 0_0_0  # Error: Cannot take first of an empty array 

It would be nice if it did.

Good idea.
I'm not sure why I hadn't already implemented that.
Added in 0c5da8e

Tested it, seems to work as intended.