Why Nostr? What is Njump?
2023-12-02 00:57:13
in reply to

Ben Cohen on Nostr: and for the code golf enthusiasts, part 1 in one line (no semicolons allowed) ...

and for the code golf enthusiasts, part 1 in one line (no semicolons allowed)

print(sequence(state:0){_ in readLine()}.reduce(0){$0+{$0[0]*10+$0.last!}($1.compactMap(\.wholeNumberValue))})
Author Public Key
npub16tr70s9khhuu6s0pf3we38rtggkchgq36f3zjdljt949kg6zt7mqn2gwu7