Min function

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Math

Package: Microsoft.Quantum.Standard

Given an array of integers, returns the smallest element.

function Min (values : Int[]) : Int

Input

values : Int[]

An array to take the minimum of.

Output : Int

The smallest element of values.