Thanks, seems like the code below is also a bug, as it compiles and runs, but 
it shouldn't.

As there's an error - the return of the `(r) => (r - 1)` expression is `int`, 
but the `findi_min` expect a proc with the `float` as return type, seems like 
it shouldn't compile...
    
    
    import sugar, sequtils
    
    func findi_min*[T](list: openarray[T], op: (T) -> float): int =
      0
    
    echo @[1].findi_min((r) => (r - 1))
    
    
    Run

Reply via email to