d('replace-many-to-one');
  next();
}

function shuffle(next) {
  list.sort(() => (Math.random() < 0.5 ? -1 : 1));
  console.time('shuffle');
  $(document.body, ul);
  console.timeEnd('shuffle');
  next();
}

function done(next) {
  list.splice(0);
  list.push({id: 0, text: 'Done: results in console.'});
  $(document.body, ul);
  next();
}

function ul() {
  return html`<ul>${
    list.map(item => html`
    <li id=${item.id}>${item.text}</li>`)
  }</ul>`;
}

</script></body>
</html>