uiua-lang/uiua

Add Advice dialog for when you try to repeat a function 1 times

Closed this issue · 3 comments

There should be an Advice dialog for when you try to ⍥ repeat a function 1 times saying that ⍥ repeat is redundant in current context.

bkDJ commented

Just my 2 cents, I find that ⍥F Bool can often be less noisy than⟨∘|F⟩ Bool.

One problem this has it the fact that switch functions can take arrays as conditions, so they are not always equivalent.
Maybe this just means that repeat should be able to take arrays.

This has been added in b07bc57