What is Nostr?
Curator of Mastodon.art fediblock :newt: /
npub1wc2…4sk7
2025-02-10 14:49:33
in reply to nevent1q…6uxx

Curator of Mastodon.art fediblock :newt: on Nostr: nprofile1q…f359z C++, Haskell, a few others. It's all just values of different ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqufmlneg8tt9jwvk6p40t02lxhmkns6zlpu4cwrvxerczdnn4syzqrf359z (nprofile…359z) C++, Haskell, a few others. It's all just values of different types. Semantically, there is no difference other than being able to apply a function to some other values (which also could be functions).

Consider the classic map function implementation:

map :: (a -> b) -> List a -> List b
map f (x : xs) = f x : map f xs
map f [] = []


You'll have to endure the Haskell syntax for a bit, but hopefully the meaning of this is pretty apparent. Now, tell me. Is f a function here? Or a variable? Or both?
Author Public Key
npub1wc2kznjw6kldwzz8eedr9pf208waa8ww3fjsqk0nz4rdv8q663qswt4sk7