|
SecreC 2 language
2.8.0 (2023.09)
Language and standard library reference
|
Functions | |
| template<domain D :shared2p > | |
| D uint | truePrefixLength (D bool[[1]] arr) |
Function for finding how many elements from the start of a vector are true.
| D uint truePrefixLength | ( | D bool[[1]] | arr | ) |
| arr | - boolean 1-dimensional vector |