Method Rewrite
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
Rewrite(IEnumerable<TSymbol>)
Rewrites a string using the rewrite rules.
public IEnumerable<TSymbol> Rewrite(IEnumerable<TSymbol> str)Parameters
- strIEnumerable<TSymbol>
- The string to rewrite. 
Returns
- IEnumerable<TSymbol>
- The rewritten string. 
Rewrite(IEnumerable<TSymbol>, int)
Performs a rewrite on a string using the rewrite rules n times.
public IEnumerable<TSymbol> Rewrite(IEnumerable<TSymbol> str, int n)Parameters
- strIEnumerable<TSymbol>
- The string to rewrite. 
- nint
- The number of times to rewrite it. 
Returns
- IEnumerable<TSymbol>
- The rewritten string.