Why Nostr? What is Njump?
2024-12-03 10:29:57

maralorn on Nostr: Behold the beauty of injecting an x in the middle to convert a tuple to a triple: ...

Behold the beauty of injecting an x in the middle to convert a tuple to a triple:

intoMiddle :: b -> (a,c) -> (a,b,c)
intoMiddle x = uncurry (,x,)

#Haskell
Author Public Key
npub1ca4hwuu3nyp5yy5t66sdetn6uhkyejkyf5c4t6kz45eyz04a6p4sqycxyl