in reply to Scalar to Array

We don't do code to spec here, we provide answers to those trying to learn.