pub fn count(values: &[U256], ctx: &FunctionContext) -> Result<U256>Expand description
Count number of values that satisfy a condition
The context is a string of 4 characters:
- The first two characters are the logical operator
- The last two characters are the value to compare
The logical operators are:
- 00: Equal (=)
- 01: Not equal (!=)
- 02: Greater than (>)
- 03: Greater than or equal (>=)
- 04: Less than (<)
- 05: Less than or equal (<=)