minimum

get minimum item from collection based on given predicate


Parameters

minimum collection :integer :string :literal :dictionary :object :inline :block :range
        params :null :literal :block
        condition :block :bytecode

Attributes

with:literaluse given index
valuealso include predicate values

Returns

  • :block
  • or  :nothing

Examples

copy
minimum [4 17 20] 'x -> size factors.prime x ; => 17 ; 17 has the minimum number of ; prime factors: 17 (1)

copy
minimum.value [4 17 20] 'x -> size factors.prime x ; => [17 1]

Related