Min method (with integers)
Description
The Min method finds the smallest value in a sequence.
Sample
This sample finds the smallest number a list of integers.
var data := List<int>{} { 5, 3, 1, 2, 4 }
var result := data:Min()
Console.WriteLine(result)
Output
1
Complete sample
using System
using System.Linq
using System.Collections.Generic
procedure Execute() as void strict
var data := List<int>{} { 5, 3, 1, 2, 4 }
var result := data:Min()
Console.WriteLine(result)
return