Prenons l'exemple de la collection suivante:
Le Règlement - Common #25
Le Règlement - Common #400
Le Règlement - Common #2500
Zinée - Common #25
Zinée - Common #100
use array::SpanTrait; | |
use zeroable::Zeroable; | |
trait SpanExtTrait<T> { | |
fn is_deeply_empty(self: Span<T>) -> bool; | |
} | |
impl SpanExtImpl<T, impl TZeroable: Zeroable<T>, impl TCopy: Copy<T>> of SpanExtTrait<T> { | |
fn is_deeply_empty(mut self: Span<T>) -> bool { | |
match self.pop_front() { |
from starkware.cairo.common.uint256 import Uint256 | |
func uint256_memset(dst: Uint256*, value: Uint256, n: felt): | |
struct LoopFrame: | |
member dst : Uint256* | |
end | |
if n == 0: | |
return () | |
end |