Skip to content

Instantly share code, notes, and snippets.

@AsharDweedar
AsharDweedar / elixir_types.ex
Last active Dec 23, 2019
get type of elixir term or compare types
View elixir_types.ex
defmodule Types do
@doc """
## Examples:
iex>Types.typeof("Hello World")
"binary"
iex>Types.typeof(1)
View Detour_Distance
/* 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
*/