Hello and welcome to one of my first Elixir posts! Could someone please explain why the latter function, when ran, doesn’t return “Hello World!”? Does this have something to do with a “lambda function”? I have no idea what’s going on but I’m having fun. Thanks!
One thing I’ve found really really important for folks learning a language: be very specific about the difference between “returning a value” and “printing a value”. Starting out in a REPL like iex can obscure this distinction, and it’s important to build a correct mental model.