Add style warning, or interpreter optimization, for `first select`
bkDJ opened this issue · 1 comments
bkDJ commented
I've seen some uiua videos on YouTube where people do the sort idiom select rise dup
, but they only want the first item so they follow up with first
. What do you think about prodding them in the right direction with a style guideline, or having the interpreter perform the fastest possible calculation for a given end result.
Values ← ⌊×1e9 [⍥⚂1e6]
⍜now(⊢⊏⍖.) Values
⍜now(⊡⊢⍖.) Values
⍜now(/↥) Values
The time difference is 2 orders of magnitude apart.