First[]

✅ Works in Interactive Notebook

Category: Find.

Get first item in list.

Syntax

First[]
First[[1, 2, 3]]

Arguments

Examples

The following example loads an image, gets the first prediction from the list (predictions are always sorted by confidence in descending order, so this will return the prediction with the highest confidence), and displays the results.

Load["./cats.png"]
Detect["cat"]
First[]

See Also

Made with ❤️ by capjamesg