# Macro synom::tuple [−] [src]

    macro_rules! tuple {
        ($i:expr, $($rest:tt)*) => { ... };
    }

Run a series of parsers and produce all of the results in a tuple.

- Syntax: `tuple!(A, B, C, ...)`
- Output: `(A, B, C, ...)`

    extern crate syn;
    #[macro_use] extern crate synom;

    use syn::Ty;
    use syn::parse::ty;

    named!(two_types -> (Ty, Ty), tuple!(ty, ty));

    fn main() {
        let input = "&str  Map<K, V>";

        let parsed = two_types(input).expect("two types");

        println!("{:?}", parsed);
    }

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)