It conflicts with the built-in `find` in system, how can I override it?
    
    
    import sugar, options
    
    proc find*[T](list: openarray[T], check: (T) -> bool): Option[T] =
      for v in list:
        if check(v): return v.some
      T.none
    
    echo @[1, 2, 3].find((v) => v == 2)
    
    
    Run

Reply via email to