Ancestors

Toot

Written by Christian Drumm 🇪🇺🧗🚵 on 2024-11-20 at 15:58

Trying to solve day 1 of the #adventofcode 2023 in #haskell.

I do not really understand what I'm doing here...

... but it works. 🤣

[#]learning #haskell

=> View attached media

=> More informations about this toot | More toots from ceedee666@mastodon.social

Descendants

Written by Füsilier Breitlinger on 2024-11-20 at 16:21

@ceedee666

read $ [head s] <> [last s] could also be written read [head s, last s].

=> More informations about this toot | More toots from barubary@infosec.exchange

Written by Christian Drumm 🇪🇺🧗🚵 on 2024-11-20 at 16:54

@barubary of cause. This makes sense.

Wouldn’t have been able to write it myself. I guess that’s the kind of construct you have to see once first.

=> More informations about this toot | More toots from ceedee666@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113516107645060372
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
239.984171 milliseconds
Gemini-to-HTML Time
0.818404 milliseconds

This content has been proxied by September (ba2dc).