Forum Discussion
List Generate Average as record;
- 8 months ago
I'm not sure what you are asking here.
Clearly in the code z and y are always the same.
But what is this? It makes no sense. Where are you getting this from?
z / 2 <> z = y/2
You can't say a thing (z/2) is not equal (or equal) to another thing (z=y/2).
You can't have an assignment on one side of a logical test like this
Again not sure how esle to explain this other than how I have.
z / 2 <> z = y/2 makes no sense mathematically and I don't know what you are trying to do there.
Phil
ok but is still dos not seem right ; if i have
= let alist = {1..10} in
List.Generate( ()=> [ x = 1, y = alist {0} ,
z = alist {0} ] ,
each [x] < List.Count( alist) ,
each [x = [x] + 1, y = [y] + alist {x-1} ,
z = [z] + alist {x-1} ] )
so here y = z but z / 2 <> z = y/2 i did pop it into copilot and this si the link
but you seem to get it more than i do. not sure if copiliot links allowed? if not sorry.
https://copilot.microsoft.com/shares/KN8qNunQvmG3Xr88jWNfw
I'm not sure what you are asking here.
Clearly in the code z and y are always the same.
But what is this? It makes no sense. Where are you getting this from?
z / 2 <> z = y/2
You can't say a thing (z/2) is not equal (or equal) to another thing (z=y/2).
You can't have an assignment on one side of a logical test like this
Again not sure how esle to explain this other than how I have.
z / 2 <> z = y/2 makes no sense mathematically and I don't know what you are trying to do there.
Phil