- :block
- or :nothing
maximum
get maximum item from collection based on given predicate
Parameters
maximum collection :integer :string :literal :dictionary :object :inline :block :range params :null :literal :block condition :block :bytecode
Attributes
with | :literal | use given index |
value | also include predicate values |
Returns
Examples
copymaximum 1..10 'x -> size factors.prime x ; => 8 ; 8 has the maximum number of ; prime factors: 2, 2, 2 (3)
copymaximum.value 1..10 'x -> size factors.prime x ; => [8 3]