Turtle and Observer Command

remove-element element list

Returns the new list when all instances of the specified element are removed from list. The input list is not changed. Note that "=" is used as the comparison operator.

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

remove-element "notinlist" [1 2 3] returns [1 2 3]

Related commands:
insert remove