Search notes:

Power Query M formula language standard library: List.Generate

The following example generates a list with the elements {1,2,4,8,16,32,64}:
List.Generate(
   ()    =>   1,  //  initial value
   each _ < 100,  //  condition to go on
   each _*2       //  Next value, takes previous value as function-input
)
Github repository about-Power-Query-Formula-M, path: /standard-library/List/Generate/powers-of-2.M

See also

The Power Query standard library

Index