These are chat archives for boostorg/hana

5th
Jan 2016
Jason Rice
@ricejasonf
Jan 05 2016 06:30

demux is freakin' awesome

      hana::unpack(hana::keys(state),
        hana::make_map ^hana::on^
        hana::demux(hana::make_pair)
        (
          hana::id,
          hana::demux(hana::maybe)
          (
            hana::partial(hana::at_key, state),
            hana::always(hana::just),
            hana::partial(hana::find, x)
          )
        )
      );

:sunglasses: