Skip to content

Instantly share code, notes, and snippets.

@madawei2699
Created December 28, 2018 06:14
Show Gist options
  • Save madawei2699/a1b08763b7ecd07c2c681c2a556dcc93 to your computer and use it in GitHub Desktop.
Save madawei2699/a1b08763b7ecd07c2c681c2a556dcc93 to your computer and use it in GitHub Desktop.
Coding Anytime Anywhere
(for x <- [<<65>><>"ny"], y <- ~w(time where), do: x <> y)
|> Enum.reduce('Co'++~c(deing)--[101], &([&2|["\s"|&1]]))
|> IO.puts
@madawei2699
Copy link
Author

Elixir Lexical Feature:

  • for-comprehensions
  • string binaries
  • sigils
  • Enum reduce
  • lambda
  • & operator
  • head tail to process a list
  • recursion
  • pip operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment