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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758209553, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Power-Query/M-formula/standard-library/List/Generate/index(42): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78