Beispiel #1
0
 public Constant(int value) : this(Val.Int(value))
 {
 }
Beispiel #2
0
 public Graph Bind(Node node1, Node node2, Val val = null)
 => Bind(new[] { node1, node2 }, val);
Beispiel #3
0
 public Constant(Val val)
 {
     Node = new Node(
         $"Const({val})@{Id}:N",
         (self, g, v) => (g, val));
 }
Beispiel #4
0
 public Graph Bind(Node node, Val val)
 => Bind(new[] { node }, val);
Beispiel #5
0
 public BindState WithVal(Val v)
 => new BindState(Nodes, Val.Combine(Val, v));
Beispiel #6
0
 private BindState(IEnumerable <Node> nodes, Val val = null)
 {
     Nodes = nodes?.ToImmutableHashSet() ?? ImmutableHashSet <Node> .Empty;
     Val   = val ?? Val.Any;
 }
Beispiel #7
0
 public (Graph, Val) Impel(Graph g, Val v) => _fn(_fn, g, v);
Beispiel #8
0
 public delegate(Graph, Val) Handler(Handler self, Graph g, Val v);