Skip to content

Instantly share code, notes, and snippets.

@jenetics
Created June 11, 2019 18:26
Show Gist options
  • Select an option

  • Save jenetics/34dff59aab3a24c551b5a0bf4481116e to your computer and use it in GitHub Desktop.

Select an option

Save jenetics/34dff59aab3a24c551b5a0bf4481116e to your computer and use it in GitHub Desktop.
static final ISeq<Op<Double>> OPERATIONS = ISeq.of(
MathOp.ADD,
MathOp.SUB,
MathOp.MUL
);
static final ISeq<Op<Double>> TERMINALS = ISeq.of(
Var.of("x", 0),
EphemeralConst.of(() ->
(double)RandomRegistry.getRandom().nextInt(10))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment