functionindexFilter
Return array of indices from source contained or not contained in target
Information
The return array is the size of the target array (if contained=true) or size of the difference of the arrays (if contained=false).
If a return value is 0 that means there was no match for that array value.
For example:
source[:] = {1,2,4,8,3};
target[3] = {3,1,8};
If contained = true; then:
y = {1,8,3}
If contained = false; then:
y = {2,4}
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | source | ||
| Integer | target | ||
| Boolean | contained | true |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result |