Product SiteDocumentation Site

7.4. Array Navigation

Once you know how to unbox an array and to filter a sequence, array lookup comes for free. It feels very much like opening a box of Swiss chocolate and then picking your favorite:
Example 7.11. Array lookup.
[ "question", "answer" ][][2],
{ 
  questions: [
    "What NoSQL technology should I use?", 
    { "faq" : "What is the bottleneck in MapReduce?" }
  ]
}.questions[][2].faq
Results:
"answer"
"What is the bottleneck in MapReduce?"