r/ProgrammingLanguages • u/Athas Futhark • Jan 16 '26
Are arrays functions?
https://futhark-lang.org/blog/2026-01-16-are-arrays-functions.html
90
Upvotes
r/ProgrammingLanguages • u/Athas Futhark • Jan 16 '26
View all comments
Show parent comment
2
u/BenchEmbarrassed7316 Jan 16 '26
You can have a static immutable array.
You can have a variable that contains a function.
I'm also far from academia, but I know that a function is an exponential type, and the function
T -> Ucan have UT values. An array that contains T elements of type U can also be in UT states. They are exactly the same.