functionfindInIntegerVector

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

Information

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

Inputs

TypeNameDefaultDescription
IntegerinputVector{6, 1, 2, 3, 4, 5}input Integer vector that is ssearched
IntegercompareWith2Integer that is to be found

Outputs

TypeNameDefaultDescription
IntegerfindIndexVector with the indices where compareWith is found
BooleanisFoundtrue if the boolean is found