Findfirstsorted

using FlexiMaps

julia> findfirstsorted(f, xs) = 
  searchsortedfirst(mapview(f, xs), true)
  

findfirstsorted(10:10:1000) do x
           println(x)
           x>300
       end
510
260
390
330
300
320
310
31
1 Like