How to define array programatically

I have:

from(bucket: "arms/permanent")
  |> range(start:2018-08-01, stop:2018-09-01)
  |> filter(fn: (r) => 
  	r._measurement == "train_events" and 
  	r._field == "overall_vertical"
    )
  |> group(columns:["site_key"])
  |> histogram( 
    bins:[0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35]
    )

…which works, but I need bins to be dynamic - N equal divisions of max(overall_vertical) - min(overall_vertical). Is there a way to programatically define my bins array?