# StringPermutations

Gives the specified character permutations for a string

ResourceFunction["StringPermutations"][ generates a list of all possible permutations of the characters in | |

ResourceFunction["StringPermutations"][ gives all permutations containing at most | |

ResourceFunction["StringPermutations"][ gives all permutations containing exactly |

## Details and Options

StringPermutations is implemented with Characters and Permutations.

StringPermutations is the string analog of Permutations of a list.

## Examples

### Basic Examples

Permutations of "cat":

In[1]:= |

Out[1]= |

Three character permutations of "horse":

In[2]:= |

Out[2]= |

One, two, and three character permutations of "garden":

In[3]:= |

Out[3]= |