List.starts_with?/2
defmodule List do
def starts_with(list, prefix)
end
Returns true
if list
starts with the given prefix
.
Also if prefix
is an empty list, it returns true
.
Otherwise returns false
.
defmodule List do
def starts_with(list, prefix)
end
Returns true
if list
starts with the given prefix
.
Also if prefix
is an empty list, it returns true
.
Otherwise returns false
.