Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Add clear method to List
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Pluckthun committed Dec 29, 2016
1 parent 336dd7e commit 46ffd7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export default class List<T> {
return pop<T>(this)
}

clear(): List<T> {
return emptyList<T>()
}

asMutable(): List<T> {
if (this.owner) {
return this
Expand Down

0 comments on commit 46ffd7f

Please sign in to comment.