Dim lstItems As List
lstItems.Initialize
lstItems.AddAll(Array ("A", "B", "C", "D"))
Wait For (lmB4XPermutations.Generate(lstItems)) Complete(lstPermutations As List)
For Each lst As List In lstPermutations
Logs.Text = Logs.Text & lst & CRLF 'ignore
Next
Logs.Text = Logs.Text & CRLF & lstPermutations.Size & " lists."