Skip to content

Instantly share code, notes, and snippets.

@hvnsweeting
Last active May 20, 2021 14:38
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 hvnsweeting/9de19f0f7dd780abd936721c14f43a11 to your computer and use it in GitHub Desktop.
Save hvnsweeting/9de19f0f7dd780abd936721c14f43a11 to your computer and use it in GitHub Desktop.

img

livebook01 - hvn@pymi.vn

PE01

1..999
|> Enum.filter(&(rem(&1, 3) == 0 or rem(&1, 5) == 0))
|> Enum.reduce(fn x, acc -> acc + x end)
DateTime.utc_now() |> DateTime.to_string()

Test

defmodule MyMath do
  def double(x) do
    x * 2
  end
end

MyMath.double(2)
i(Enum.map())

First impressions

  • phím tắt không giống Jupyter Notebook nên hơi khó bấm
  • phím tắt dùng nhiều phím giống vi nên cũng ok
  • không hiện doc của function, không hiện danh sách arg như Jupyter Notebook Shift Tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment