Skip to content

FirstCase

Returns the first element that matches a pattern.

$ wo 'FirstCase[{1, 2, 3, 4}, x_ /; x > 2]'
3