private static void flush(Appendable writer) {
		try {
			if (writer instanceof Flushable flushable) {
				flushable.flush();
			}
		} catch (IOException e) {
			throw new UncheckedIOException(e);
		}
	}
CSV writer which deconstructs and writes records of type {@code T}.

@param type the record type
@return a new CSV writer
@param <T> the record type
jenetics.incubator/src/main/java/io/jenetics/incubator/csv/CsvWriter.java