get item in collection with maximum value returned from given action
Parameters
maximum collection :integer :string :literal :dictionary :object :inline :block :range
params :null :literal :block
action :block :bytecode
Attributes
| with |
:literal |
use given index |
| value |
|
also include predicate values |
| parallel |
:integer |
extract keys concurrently; integer caps the number of in-flight fibers |
Returns
Examples
copy
maximum 1..10 'x -> size factors.prime x
; => 8
; 8 has the maximum number of
; prime factors: 2, 2, 2 (3)
copy
maximum.value 1..10 'x -> size factors.prime x
; => [8 3]
Related