Add Enumerable.slice/1 implementations on PropertyMap and PrefixMap

This commit is contained in:
Marcel Otto 2021-03-05 23:11:28 +01:00
parent f9bd3b9476
commit bb29582695
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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