JSON/q

A JSON-based data access specification

Arguments

[
  [
    5, 
    4, 
    1, 
    3, 
    9, 
    8, 
    6, 
    7, 
    2, 
    0
  ]
]

Query

{
  "as": "n", 
  "from": "args[0]", 
  "select": "average(n)"
}

Results

4.5