Could use a hand with #golang; I'm not sure what I'm doing wrong here. The function ChoiceMap sometimes loops forever, even though I've got short-circuits built in; it occasionally seems to just ignore them. Any ideas?

github.com/joyeusenoelle/go-in

Follow

@noelle don't see the problem, but golang maps iterate in random order. So could range and return the first result. Depends on your random requirements though

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml