Add is_triple/1 guard
This commit is contained in:
parent
303aa7c8fa
commit
df78c169d4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue