Comment

Comment by Corsome

> This is actually not so strange– you can think of many structures as functions. For example, you can think of a number 3 as a function. When you multiply it by things, it makes them three times bigger.

I don't see how 3 can be a function from this example. "3*" (partially applied multiplication by 3) looks more like it.

Matrices and vectors as functions? Yeah, if the argument is within bounds. That makes it just an indexing operation.

(I guess one can view 3 as a one element vector but that sounds like a degenerate case)

Or maybe I'm missing something...?

parent Corsome 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton