JSON/q

A JSON-based data access specification

Arguments

[
  [
    5, 
    4, 
    1, 
    3, 
    9, 
    8, 
    6, 
    7, 
    2, 
    0
  ], 
  [
    "zero", 
    "one", 
    "two", 
    "three", 
    "four", 
    "five", 
    "six", 
    "seven", 
    "eight", 
    "nine"
  ]
]

Query

{
  "as": "n", 
  "from": "args[0]", 
  "select": {
    "even": "(n % 2 == 0)", 
    "digit": "args[1][n]"
  }
}

Results

{}