Add is_triple/1 guard

This commit is contained in:
Marcel Otto 2021-12-03 23:15:03 +01:00
parent 303aa7c8fa
commit df78c169d4

View file

@ -2,4 +2,6 @@ defmodule RDF.Guards do
import RDF.Utils.Guards
defguard maybe_ns_term(term) when maybe_module(term)
defguard is_triple(t) when is_tuple(t) and tuple_size(t) == 3
end