Created
November 15, 2019 20:49
-
-
Save ianfabs/8cc5eebffbad2dc8476daecbbb6cb859 to your computer and use it in GitHub Desktop.
A rust macro definition for creating tuples. Kinda useless, kinda cool.
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
#[macro_export] | |
#[doc = " generate tuple"] | |
macro_rules! tuple { | |
($($n: expr),*) => {($($n,)*)}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment