In God's mind there is no succession of thoughts in time as man thinks in temporal succession. God never learns anything since God already knows everything there is to know. God is omnisicent. So when Genesis 1:1 one says, "In the beginning God created ..." that would imply that God already knew all the intricate details of creation, history, and everything that would happen. This world is the only possible world that God could have created because God is immutable. He could not have created any other possible world without changing His being and purposes. God's will is immutable just as His being is immutable.

For "who has known the mind of the LORD that he may instruct Him?" But we have the mind of Christ. (1 Corinthians 2:16 NKJ)