Comment

Comment by MPSimmons

oooooooh I think I'm starting to see...

sum::{} is the creation of a monadic function (which I just learned about because I don't have a CS background)

:" is a comment

sum([...]) is calling the function with a list, and the function will iterate over the list adding each of the elements

count::{#x} is another monadic function that returns the number of elements, which then gets called

parent MPSimmons 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton