Skip to content

Instantly share code, notes, and snippets.

View Kottakji's full-sized avatar
💭
Phoenix, FastAPI, React

Kottakji Kottakji

💭
Phoenix, FastAPI, React
View GitHub Profile

Keybase proof

I hereby claim:

  • I am JorisKok on github.
  • I am joris_kok1 (https://keybase.io/joris_kok1) on keybase.
  • I have a public key whose fingerprint is B910 6513 6A4E 699E E410 810D A158 A1A9 F285 0464

To claim this, I am signing this object:

@Kottakji
Kottakji / flatten.ex
Last active October 21, 2018 18:55
Flatten in elixir without library functions
defmodule MyList do
def flatten([]) do
[]
end
def flatten(value, []) when is_integer(value) do
value
end