Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
Yes, it is possible to do in some other languages, to assign a function to a variable, or pass a function as parameter to other functions. Not every language can do this, though... But there are hundreds of programming languages in the world.
I am not sure how is this helpful to you. Your question is not specific enough.