for i in range(len(inputstr)):
for s in allperm(inputstr[:i] + inputstr[i+1:]):
yield(inputstr[i] + s)
| Contact Us
© 2022 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.