New course! Every coder should learn Generative AI!
Try a free lesson+ 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.