mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
fix: remove requirements for pop_first.
This commit is contained in:
committed by
Christoffer Lerno
parent
4be08ee0bd
commit
0639659270
@@ -128,9 +128,6 @@ fn void List.clear(&self)
|
||||
self.set_size(0);
|
||||
}
|
||||
|
||||
<*
|
||||
@require self.size > 0
|
||||
*>
|
||||
fn Type! List.pop_first(&self)
|
||||
{
|
||||
if (!self.size) return IteratorResult.NO_MORE_ELEMENT?;
|
||||
|
||||
Reference in New Issue
Block a user