File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11import { BLACK } from '../color/BLACK.js' ;
22
33/**
4- * Recursively constructs a prettyprint string for the red-black tree rooted at
5- * <code>root</code>.
4+ * Builds a debug function from color handlers.
65 *
7- * @param {Node } root - The root of the tree .
8- * @returns {String }
6+ * @param {Object } colors The colors to use .
7+ * @returns {Function } The debug function.
98 */
10- export function _debug ( { red, black} ) {
9+ export const _debug = ( { red, black} ) => {
10+ /**
11+ * Recursively constructs a prettyprint string for the red-black tree rooted at
12+ * <code>root</code>.
13+ *
14+ * @param {Node } root - The root of the tree.
15+ * @returns {string }
16+ */
1117 const debug = ( root ) => {
1218 if ( root . isLeaf ( ) ) return black ( 'L' ) ;
1319
@@ -17,4 +23,4 @@ export function _debug({red, black}) {
1723 } ;
1824
1925 return debug ;
20- }
26+ } ;
You can’t perform that action at this time.
0 commit comments