Skip to content

Instantly share code, notes, and snippets.

@thechrisoshow
Created September 21, 2012 14:26
Show Gist options
  • Select an option

  • Save thechrisoshow/3761746 to your computer and use it in GitHub Desktop.

Select an option

Save thechrisoshow/3761746 to your computer and use it in GitHub Desktop.

Revisions

  1. thechrisoshow created this gist Sep 21, 2012.
    6 changes: 6 additions & 0 deletions new_literal.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    NSArray *anArray = @[a,b,c];
    NSDictionary *aDictionary @{ a : a1, b : b1};

    // New subscripting format
    anArray[0]; // => returns a
    aDictionary[a] // => returns a1