Created
January 22, 2025 01:24
-
-
Save 0ex-d/b0614ae474fa58a28b5c85a6e9c4ced9 to your computer and use it in GitHub Desktop.
A two-way stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
pub struct Stack<L1, L2> { | |
l1: L1, | |
l2: L2, | |
} | |
impl<L1, L2> Stack<L1, L2> { | |
const fn new(l1: L1, l2: L2) -> Self { | |
Self { l1, l2 } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment