Untitled
unknown
elixir
10 months ago
514 B
14
Indexable
A.greet("Yigit") # Selam Yigit
A.greet("Sinem") # Selam Sinem
A.greet("Doe") # Selam Doe
A.a(%{"name" => "John Doe"}) # Hi John Doe
A.b("title:Lorem ipsum") # Title is Lorem ipsum
A.binary_pattern_matching(<<0x01, 0x00, 0x03, "meg", "rest">>)
# {:ok, "meg", "rest"}
A.fact(-5) # :error
A.fact(5) # 120
A.last_two([]) # :none
A.last_two(["1"]) # :none
A.last_two(["1", "2"]) # ["1", "2"]
A.luhn_credit_card_validator("4242424242424242") # true
A.luhn_credit_card_validator("4242424242424243") # falseEditor is loading...
Leave a Comment