Skip to content

Instantly share code, notes, and snippets.

@linjunpop
Last active May 30, 2021 11:14
Show Gist options
  • Save linjunpop/30efbfd874fb1a16176d3f638a1e712a to your computer and use it in GitHub Desktop.
Save linjunpop/30efbfd874fb1a16176d3f638a1e712a to your computer and use it in GitHub Desktop.

Revisions

  1. linjunpop revised this gist May 30, 2021. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions concat.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    defmodule Concat do
    def join(a, b) do
    IO.puts "***First join"
    a <> b
    end

    def join(a, b, sep \\ " ") do
    IO.puts "***Second join"
    a <> sep <> b
    end
    end
  2. linjunpop revised this gist May 30, 2021. 2 changed files with 5 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions foo.ex
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    defmodule Foo
    def hello do
    "world"
    end
    end
    5 changes: 5 additions & 0 deletions math.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    defmodule Math do
    def sum(a, b) do
    a + b
    end
    end
  3. linjunpop created this gist May 30, 2021.
    5 changes: 5 additions & 0 deletions foo.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    defmodule Foo
    def hello do
    "world"
    end
    end