Re: Array Operations question

2014-07-25 Thread bearophile via Digitalmars-d-learn
Márcio Martins: float[10] a; a[] = uniform(0.0f, 1.0f); This is going to set all values to the result of a single call to uniform(); Is there a way to express my intent that I want one result per array element? Currently D array operations can't be used for that kind of usage. So you hav

Array Operations question

2014-07-25 Thread via Digitalmars-d-learn
Hello! I started exploring D today and one of the things that caught my attention was the "array operations" feature. While playing around and writing some code with it, I came across a problem I wasn't able to find a solution for. The following is a simple example of the assignment array op