Permutations: Difference between revisions

Content added Content deleted
(f# second version - based on Haskell insertion-based approach)
m (→‎VBA: changed highlight language VBA -> VB)
Line 5,024: Line 5,024:
=={{header|VBA}}==
=={{header|VBA}}==
{{trans|Pascal}}
{{trans|Pascal}}
<lang VBA>Public Sub Permute(n As Integer, Optional printem As Boolean = True)
<lang VB>Public Sub Permute(n As Integer, Optional printem As Boolean = True)
'Generate, count and print (if printem is not false) all permutations of first n integers
'Generate, count and print (if printem is not false) all permutations of first n integers