Qurak

FirstCase

Disponível

Returns the first element that matches a pattern.

FirstCase[{e1, e2, …}, pattern]
FirstCase[{e1, …}, pattern -> rhs]
FirstCase[expr, pattern, default]
FirstCase[expr, pattern, default, levelspec]
FirstCase[pattern]
FirstCase[{1, 2, 3, 4}, x_ /; x > 2] → 3

Tópicos

Relacionados

Todas as 6300 funções · Usar isto de um cliente MCP