I could not find any example but this is the sort of thing I want to get 
working:
    
    
    proc bitWise*[T](buff: openArray[T], action: expr, mask: openArray[T]): 
seq[T] =
        var c = items #or some custom iterator
        result = buff.mapMe(it action c(mask)) # mapMe is an openArray friendly 
mapIt clone
    
    # how do I pass xor, and, or etc?
    var dataMasked = bitWise (data, `xor`, mask)
    

Thanks.

Reply via email to