remove

open override fun remove(element: E): PersistentList<E>(source)

Returns the result of removing the first appearance of the specified element from this list.

Return

a new persistent list with the first appearance of the specified element removed; or this instance if there is no such element in this list.