Settings

Theme

Advent of Code, Day 1: Missing abs() for integers in Golang

bytesizego.com

4 points by shraddhaag · 1 comment

Reader

1 thread
shraddhaagOP

Wrote a blog about this year's advent of code day 1. While solving the problem I was once again struck with the missing function for calculating absolute value for integers and decided to dig a lil deeper. You'll also find a small recap of how the abs() function for floats evolved over time in the standard library.

Please do give it a read and let me know your thoughts!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection