Turtle, Observer, Patch

remove-element element [list]

Parameters:
element Anything element to be removed
[list] List list with element to be removed

Description:
Reports the new list when all instances of the specified element are removed from list. The input list is not changed.

Examples:
remove-element [1 2] [3 [4 5] [1 2] 6 [1 2]] returns [3 [4 5] 6]

Notes:
"=" is used as the comparison operator.

Related Commands:
item list member? position remove sentence setitem