public static <V> TRS<V> parse(
		final Function<? super String, ? extends V> mapper,
		final String... rules
	) {
		return new TRS<>(
			ISeq.of(rules)
				.map(rule -> TreeRewriteRule.parse(rule, mapper))
		);
	}
Create a new TRS from the given rewrite rules and type mapper.

@param mapper the tree value type mapper
@param rules the rewrite rules
@param <V> the tree value type the rewriter is working on
@return a new TRS
@throws NullPointerException if one of the arguments is {@code null}
@throws IllegalArgumentException if the given {@code rules} sequence is
        empty
jenetics.ext/src/main/java/io/jenetics/ext/rewriting/TRS.java