Skip to content

Instantly share code, notes, and snippets.

View AsharDweedar's full-sized avatar

As-har Dweedar AsharDweedar

View GitHub Profile
@AsharDweedar
AsharDweedar / elixir_types.ex
Last active December 23, 2019 23:29
get type of elixir term or compare types
defmodule Types do
@doc """
## Examples:
iex>Types.typeof("Hello World")
"binary"
iex>Types.typeof(1)
/* I wrote a complete code including main fumction
The test data I used:
Latitude Longtitude Address
--------- ----------- ----------
A: 37.643861 -122.427852 358 Alida way, south san francisco, ca
B: 37.611749 -122.402334 1500 elcamino real, san bruno, ca
C: 37.621548 -122.408184 277 carlton ave, san bruno, ca
D: 37.621313 -122.378955 San Francisco Airport
this is extra file
*/