A functional programming language has always meant a language with first class and anonymous functions. Can you do anything with a lambda that you can do with any other function in Rust? If not, then no. If so, then yes it is.
The problem with Rust is that its three ways of passing arguments makes it very difficult to write things that take functions and return functions and deal with functions.
A functional programming language has always meant a language with first class and anonymous functions. Can you do anything with a lambda that you can do with any other function in Rust? If not, then no. If so, then yes it is.
The problem with Rust is that its three ways of passing arguments makes it very difficult to write things that take functions and return functions and deal with functions.
score 1 · canonical