functionfind
Find element in vector
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | s | Search for s | |
| Integer[:] | v | Vector |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result | v[result] = s (first occurrence of s); result=0, if not found |