Turtle, Observer, Patch

mode-of-list list

Parameters:
list List

Description:
Returns the mode of the given list.

Examples:
mode-of-list [1 1 2 2 2] returns 2.

Notes:
Note: If list contains no numbers, an error occurs. If some of the list, when evaluated, are not numbers, those values are ignored.

Related Commands:
average-of-list max-of-list median-of-list min-of-list mode-of-list sdev-of-list sort-num-list sum-of-list variance-of-list