Project

General

Profile

Actions

$min » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 09/19/2020 10:57 PM


Added in 3.9

$min(<space delimited tokens>)
$min(<comma,delimited,tokens>)

Returns the minimum value from a list of tokens.

By default it sorte tokens using the numeric sorting rules used by $sorttok 'n' switch.

See also $sorttok.

Parameters

<space delimited tokens> - If only one parameter is defined, it's treated as a list of space delimited tokens.
<comma,delimited,tokens> - If multiple parameters is defined, it's treated as a list of comma separated tokens.

Properties

.text - Sorts tokens using the same text sorting rules used by $sorttok 'a' switch.
.textcs - Sorts tokens using the same text sorting rules used by $sorttokcs 'a' switch.
.nick - Sorts tokens using the same text sorting rules used by $sorttok 'c' switch.

Example

//echo -ag $min(6 7 2 4 1)
//echo -ag $min(6,7,2,4,1)

//echo -ag $min(b B a A c C).text
//echo -ag $min(b,B,a,A,c,C).text

_

Updated by Per Amundsen about 4 years ago · 1 revisions

Also available in: PDF HTML TXT