public
Created

New literal subscripting in objective c

  • Download Gist
new_literal.m
Objective-C
1 2 3 4 5 6
NSArray *anArray = @[a,b,c];
NSDictionary *aDictionary @{ a : a1, b : b1};
 
// New subscripting format
anArray[0]; // => returns a
aDictionary[a] // => returns a1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.