Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[macro_export]
- macro_rules! tensor {
- ([$($x: expr),*]) => {{
- println!("hel hel");
- $(
- tensor!($x);
- )*
- }};
- ($($x: expr)*) => {
- println!("wat wat");
- println!("{:?}", $($x),*);
- };
- }
- fn main() {
- tensor!([0.0, 5.0]);
- tensor!([[0.0, 5.0], [10.0, 10.0]]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement