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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | inputVector | {6, 1, 2, 3, 4, 5} | input Integer vector that is ssearched |
| Integer | compareWith | 2 | Integer that is to be found |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | findIndex | Vector with the indices where compareWith is found | |
| Boolean | isFound | true if the boolean is found |