I’ve been using a lot more hacklang at work and have run across many usecases that don’t have the greatest documentation. One such usecase is how to convert from a keyset to a darray. This is how I solved that.
The darray actually has a pretty flexible constructor so you can create a darray from a keyset by simply passing the keyset into the darray.
$my_keyset = keyset['a', 'b']; $my_darray = darray($my_keyset);
Hi I'm Hamilton and I wrote / built this! I like doing lots of things, but mostly I like to build (and then share those buildings). Some things I'm currently building: art, software, and prose. To stay up-to-date with my latest buildings, subscribe to my email list or follow one of my many other accounts. #buildit #shipit #justhamit