Add Enumerable.slice/1 implementations on PropertyMap and PrefixMap
This commit is contained in:
parent
f9bd3b9476
commit
bb29582695
2 changed files with 2 additions and 2 deletions
|
@ -412,7 +412,7 @@ defmodule RDF.PrefixMap do
|
|||
|
||||
def member?(%RDF.PrefixMap{map: map}, mapping), do: Enumerable.member?(map, mapping)
|
||||
def count(%RDF.PrefixMap{map: map}), do: Enumerable.count(map)
|
||||
def slice(_prefix_map), do: {:error, __MODULE__}
|
||||
def slice(%RDF.PrefixMap{map: map}), do: Enumerable.slice(map)
|
||||
end
|
||||
|
||||
defimpl Inspect do
|
||||
|
|
|
@ -312,7 +312,7 @@ defmodule RDF.PropertyMap do
|
|||
|
||||
def member?(%PropertyMap{iris: iris}, mapping), do: Enumerable.member?(iris, mapping)
|
||||
def count(%PropertyMap{iris: iris}), do: Enumerable.count(iris)
|
||||
def slice(_property_map), do: {:error, __MODULE__}
|
||||
def slice(%PropertyMap{iris: iris}), do: Enumerable.slice(iris)
|
||||
end
|
||||
|
||||
defimpl Inspect do
|
||||
|
|
Loading…
Reference in a new issue