What is Nostr?
Marc Planard /
npub108q…sj9f
2024-02-07 17:03:26
in reply to nevent1q…046c

Marc Planard on Nostr: npub1rnq3k…x7anc npub1a9qm8…mx9nu actually the two solutions don't achieve the ...

npub1rnq3kmah2jqlewmgsv3w0mus7znmn7teupxctuyqwuaamwc4mmusdx7anc (npub1rnq…7anc) npub1a9qm8mw89r6cmp906fe09pf36p4n6a8kfd4ea0qf0wpr4cdexy9qnmx9nu (npub1a9q…x9nu) actually the two solutions don't achieve the same purpose. Yours filters out the errors and continue keeping only the Ok values, but mine and I think what Jens want it to cut short if any error occurs.
And yes collect() can do dark magic sometimes (in this case, it acts like traverse :) https://impurepics.com/posts/2020-10-03-always-traverse.html )
Author Public Key
npub108qkm8p33amskf32zc7aclfv33zfla2n7jlv0pkcg70t7gral4xs27sj9f