added clear function

shitty because it creates an entirely new list but i shall nobly trust
my tomorrow-after-waking-up self to improve the function.