loke,
@loke@functional.cafe avatar

Solving programming problems in Kap (and, to be honest, all array langauges) adds another level of entertainment.

Sure, getting the correct solution for day 1 was trivial. But 5 lines of code to do it? Unacceptable. I've apent hours thinkning of the most clever solution that can give the answer with one (preferably short) line of code.

The second part of day 1 is unusually tricky to turn into a single expression without conditionals or variable assignments. I'm still looking for a perfect solution though.

#kap #apl #adventofcode

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines