> How to implement this in nim
    
    
    import sequtils
    import sugar
    
    var list = @[1,2,3]
    
    var found = list.filterIt ( it==2 )
    var foundPtr = addr found[0]
    
    foundPtr.* = 3
    
    echo list # expected: [1,3,3]
    
    
    Run

Reply via email to