What is Nostr?
Leonard/Janis Robert König /
npub1uf6…774h
2023-10-24 10:16:56
in reply to nevent1q…e5zv

Leonard/Janis Robert König on Nostr: That being said, is there a more elegant way to implement something like this: ``` ...

That being said, is there a more elegant way to implement something like this:

```
ghci> decider x = if x < 0 then ([x],[]) else ([],[x])
ghci> foldMap (decider) [-3,5,0,-1,6,2,-1]
([-3,-1,-1],[5,0,6,2])
```
Author Public Key
npub1uf6cu9nwq4tvcrgeahfxf2mx9ppq4nxdldf22a0kmhtuk7dq2mjqmm774h