Skip to main content

Count element

Count the number of appearances of an element in a list.

Syntax

count_element(List | Vector, Element)
count_element(List | Vector)

Description

Given a list, vector or relation and an element, returns the number of appearances of such element in the object.

programming.count_element1.calc.png

Given a list, vector or relation, returns a relation between the elements and the number of appearances.

programming.count_element2.calc.png