public static ISeq<Character> toISeq(final CharSequence chars) {
		final MSeq<Character> seq = MSeq.ofLength(chars.length());
		for (int i = 0; i < chars.length(); ++i) {
			seq.set(i, chars.charAt(i));
		}

		return seq.toISeq();
	}
Helper method for creating a sequence of characters from the given
{@code CharSequence}. The returned sequence will contain all characters
in the original order.

@param chars the char sequence to convert.
@return a sequence which will contain all given chars in the original
        order.
jenetics/src/main/java/io/jenetics/util/CharSeq.java