Created
June 7, 2021 18:08
-
-
Save BrooklinJazz/e79a7d8eed7d20ff52aa5e85a0cc7fc4 to your computer and use it in GitHub Desktop.
Calling a function from inside the same module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Greeting do | |
| def main do | |
| say_hello() | |
| end | |
| def say_hello do | |
| "Hello" | |
| end | |
| end | |
| Greeting.main() # Hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment