Fork me on GitHub
#cherry
<
2023-12-06
>
pez12:12:44

I took @mail191’s clues for day 4 part 2, and made https://squint-cljs.github.io/cherry/?repl=true&amp;boilerplate=https%3A%2F%2Fgist.githubusercontent.com%2Fborkdude%2Fcf94b492d948f7f418aa81ba54f428ff%2Fraw%2Fa6e9992b079e20e21d753e8c75a7353c5908b225%2Faoc_ui.cljs&amp;src=OzsgSGVscGVyIGZ1bmN0aW9uczoKOzsgKGZldGNoLWlucHV0IHllYXIgZGF5KSAtIGdldCBBT0MgaW5wdXQKOzsgKGFwcGVuZCBzdHIpIC0gYXBwZW5kIHN0ciB0byBET00KOzsgKHNweSB4KSAtIGxvZyB4IHRvIGNvbnNvbGUgYW5kIHJldHVybiB4CgooZGVmbiBpbnRlcnNlY3Rpb24gWyYgeHNdCiAgKHJlZHVjZSAoZm4gW2FjYyBzXQogICAgICAgICAgICAoc2V0IChmaWx0ZXIgIyhjb250YWlucz8gYWNjICUpIHMpKSkgeHMpKQoKKGNvbW1lbnQKICAoaW50ZXJzZWN0aW9uIChzZXQgWzEgMiAzXSkgKHNldCBbMSAyXSkpCiAgKQoKOzsgUmVtZW1iZXIgdG8gdXBkYXRlIHRoZSB5ZWFyIGFuZCBkYXkgaW4gdGhlIGZldGNoLWlucHV0IGNhbGwuCihkZWYgbXktaW5wdXQgKC0%2BPiAoanMtYXdhaXQgKGZldGNoLWlucHV0IDIwMjMgNCkpCiAgICAgICAgICAgICAgICAjX3NweQogICAgICAgICAgICAgICAgc3RyL3NwbGl0LWxpbmVzKSkKCihkZWYgZXhhbXBsZS1pbnB1dC0xCiAgWyJDYXJkIDE6IDQxIDQ4IDgzIDg2IDE3IHwgODMgODYgIDYgMzEgMTcgIDkgNDggNTMiCiAgICJDYXJkIDI6IDEzIDMyIDIwIDE2IDYxIHwgNjEgMzAgNjggODIgMTcgMzIgMjQgMTkiCiAgICJDYXJkIDM6ICAxIDIxIDUzIDU5IDQ0IHwgNjkgODIgNjMgNzIgMTYgMjEgMTQgIDE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m4gcGFyc2UtY2FyZHMgW2lucHV0XQogIChtYXAgKHBhcnRpYWwgcGFyc2UtY2FyZCAoY291bnQgaW5wdXQpKSBpbnB1dCkpCgooZGVmbiBwYXJ0LTEgW2lucHV0XQogICgtPj4gaW5wdXQKICAgIHBhcnNlLWNhcmRzCiAgICAobWFwIDpjb3VudCkKICAgIChrZWVwICMod2hlbiAocG9zPyAlKSAoZGVjICUpKSkKICAgIChtYXAgIyhiaXQtc2hpZnQtbGVmdCAxICUpKQogICAgKHJlZHVjZSArKSkpCgooY29tbWVudAogIChwYXJ0LTEgZXhhbXBsZS1pbnB1dC0xKSA6PSAxMwogIChjb21tZW50CiAgICh0aW1lCiAgICAgKHBhcnQtMSBteS1pbnB1dCkpCiAgIDpyY2YpKQoKKGRlZm4gZ2V0LWNvdW50CiAgKFtjb3VudHNdIChyZWR1Y2UgKyBjb3VudHMpKQogIChbY291bnRzIGNhcmRdCiAgIChjb25qIGNvdW50cyAocmVkdWNlICsgMSAodGFrZSBjYXJkIGNvdW50cykpKSkpCgooZGVmbiBjb3VudC1jYXJkcyBbY291bnRzXQogIChyZWR1Y2UgKyAocmVkdWNlIGdldC1jb3VudCAnKCkgY291bnRzKSkpCgooY29tbWVudAogKGRlZiBleGFtcGxlLWlucHV0LTIgZXhhbXBsZS1pbnB1dC0xKQogKGRlZiBjb3VudHMgKC0%2BPiBleGFtcGxlLWlucHV0LTIKICAgICAgICAgICAgICAgICAgcGFyc2UtY2FyZHMKICAgICAgICAgICAgICAgICAgKG1hcCA6Y291bnQpCiAgICAgICAgICAgICAgICAgIHJldmVyc2UpKQogY291bnRzIDo9IFswIDAgMSAyIDIgNF0KIChjb3VudC1jYXJkcyBjb3VudHMpIDo9IDMwCiA6cmNmKQoKCihkZWZuIHBhcnQtMiBbaW5wdXRdCiAgKC0%2BPiBpbnB1dAogICAgICAgcGFyc2UtY2FyZHMKICAgICAgIChtYXAgOmNvdW50KQogICAgICAgcmV2ZXJzZQogICAgICAgY291bnQtY2FyZHMpKQoKKGNvbW1lbnQKIChwYXJ0LTIgZXhhbXBsZS1pbnB1dC0yKSA6PSAzMAogKGNvbW1lbnQKICAgKHRpbWUKICAgIChwYXJ0LTIgbXktaW5wdXQpKQogICA6cmNmKSk%3D that runs in 10 ms in cherry. But the result is a string "30list". (Where 30 is the correct answer).

borkdude12:12:32

uh-oh, I'll have a look

borkdude12:12:31

got it, it's '() which isn't properly evaluated in cherry, change it to ()

pez13:12:54

Cool. I filed an issue 😃

borkdude13:12:45

fixed on main

metal 3