Skip to content

Commit 6d7e7e7

Browse files
🚴 perf(Three): Store computed measure in digit in node method.
1 parent 11f7574 commit 6d7e7e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/1-digit/3-Three.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert';
2-
import {node2, node3} from '../2-node/index.js';
2+
import {node2, Node3, node3} from '../2-node/index.js';
33
import {Split} from '../0-core/index.js';
44
import {Digit, One, Two, Four} from './index.js';
55

@@ -46,7 +46,7 @@ Three.prototype.cons = function (value) {
4646
};
4747

4848
Three.prototype.node = function (M) {
49-
return node3(M, this.a, this.b, this.c);
49+
return new Node3(this.measure(M), this.a, this.b, this.c);
5050
};
5151

5252
/**

0 commit comments

Comments
 (0)