Incremental Symbol Function

$IncChar generates a sequence of single char strings and has following parameters:

  1. (optional) first symbol. Optional, default is 'a'
  2. (optional) last symbol. Optional, default is 'z'
  3. (optional) Step. Integer, default is 1. Negative value means decrement.
  4. (optional) Reuse counter, integer, default is 1. The generator will return same value a few times if this parameter is positive.

Examples

  1. $IncChar() - sequence from 'a' to 'z' and repeat. Output: a,b,c,d,e,f,...
  2. $IncChar(A,F) - sequence from 'A' to 'F' and repeat. Output: A,B,C,D,E,F,A,B,C,D,E,F,A,B,C,D,E,F,...
  3. $IncChar(c,g,2) - sequence from 'c' to 'g' with step 2 and repeat. Output: c,e,g,c,e,g,c,e,g,c,e,g,...
  4. $IncChar(z,q,-1) - sequence from 'z' to 'q' with step -1. Output: z,y,x,w,v,u,t,s,r,q,z,y,x,w,v,u...