(define sixhat (λ (dave) (display 'ideas)))

A simple JS range one-liner

const range=n=>[...Array(n).keys()]