Created
June 10, 2016 16:55
-
-
Save elbrujohalcon/91e0ed0fb701195e7f6d1cf25238d22f to your computer and use it in GitHub Desktop.
Hello module with exported fun
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
-module(hello). | |
-export([world/0, f/0]). | |
world() -> | |
F = f(), | |
F = f(), | |
io:format("~s~n", [F()]). | |
f() -> fun() -> "Hello, world!" end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment