Skip to content

Instantly share code, notes, and snippets.

@elbrujohalcon
Created January 8, 2018 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbrujohalcon/9d8ccacdd5f2476f2e77becba0853310 to your computer and use it in GitHub Desktop.
Save elbrujohalcon/9d8ccacdd5f2476f2e77becba0853310 to your computer and use it in GitHub Desktop.
-module(plusplus).
-export([first/0, second/0, third/0]).
-spec first() -> 'something'.
first() -> [] ++ something.
-spec second() -> none().
second() -> something ++ [].
-spec third() -> nonempty_improper_list(1 | 2 | 3,'something').
third() -> [1,2,3] ++ something.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment