Forum Discussion
Dicken
2 years agoPost Prodigy
let versus record
Hello, can someone explain why the record version does not give result in genlist; let alist = {"a","b","c","c","c","d","d"} ,
lc = List.Count (alist )
in
List.Generate( ()=> [ i =...
- 2 years ago
what's this?
each [i] < lc =1
Ahmedx
2 years agoSuper User
Is this what you are looking for?
[ alist = {"a","b","c","c","c","d","d"} ,
lc = List.Count (alist ),
genlist = List.Generate( ()=> [ i = 0 , x = true ] ,
each [i] < List.Count( alist) -1,
each [ i = [i]+1, x = alist{[i]} = alist {[i]+1} ]
) ][genlist]
- Dicken2 years agoPost Prodigy
No I'm looking for an answer as to why the let statement gives a result and the record does not
that was the question asked. .