export const COLORS = [
  '#D84315',
  '#BF360C',
  '#FBC02D',
  '#F9A825',
  '#F57F17',
  '#FFA000',
  '#FF8F00',
  '#FF6F00',
  '#F57C00',
  '#EF6C00',
  '#E65100',
  '#388E3C',
  '#2E7D32',
  '#689F38',
  '#558B2F',
  '#AFB42B',
  '#0288D1',
  '#0097A7',
  '#00838F',
  '#1976D2',
  '#1565C0',
  '#C2185B',
];

const shuffle = array => array.slice().sort(() => Math.random() - 0.5);

export const getRandomColor = (() => {
  let list = [];
  return () => {
    if (!list.length) {
      list = shuffle(COLORS);
    }
    return list.shift();
  };
})();

@@ -1,20 +1,60 @@
+import %7B sort, isEmpty %7D from 'ramda';%0A%0A
 export const COLORS 
@@ -367,31 +367,8 @@
 e = 
-array =%3E array.slice().
 sort
@@ -401,24 +401,20 @@
 );%0A%0A
-export const get
+const create
 Rand
@@ -424,12 +424,18 @@
 olor
+Builder
  = 
-(
 () =
@@ -484,20 +484,21 @@
 if (
-!list.length
+isEmpty(list)
 ) %7B%0A
@@ -564,13 +564,69 @@
 ;%0A  %7D;%0A%7D
-)
+;%0A%0Aexport const getRandomColor = createRandomColorBuilder
 ();%0A

Refactor `src/utils/colors`