JSFiddle - React, Tailwind, and code Playground

by brigand

JavaScript

class Binary {
	constructor(bits = []) {
	  this.bits = bits;
  }
  
  get $() {
  	return new Binary([1].concat(this.bits))
  }
}