This file contains 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
{ | |
"version": "1.0.0-*", | |
"webroot": "wwwroot", | |
"exclude": [ | |
"wwwroot" | |
], | |
"packExclude": [ | |
"**.kproj", | |
"**.user", | |
"**.vspscc" |
This file contains 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 M do | |
def flatten(l) do | |
flatten(l, []) | |
|> Enum.reverse | |
end | |
def flatten([], acc) do | |
acc | |
end | |
def flatten([head | tail], acc) when is_integer(head) do |
OlderNewer