Function which finds the integer compareWith in the vector inputVector. Output is a vector with the position of the found indexes and the boolean isFound that shows if the vecor is found at all
function findInIntegerVector input Integer[:] inputVector = {6, 1, 2, 3, 4, 5} "input Integer vector that is ssearched"; input Integer compareWith = 2 "Integer that is to be found"; output Integer[:] findIndex "Vector with the indices where compareWith is found"; output Boolean isFound "true if the boolean is found"; end findInIntegerVector;