# From swap/test/list/last.n3
@prefix : <#>.
@prefix list: <http://www.w3.org/2000/10/swap/list#>.

{ (  1 2 3 4 5 ) list:member 1 } => { :test4a a :SUCCESS }.
{ (  1 2 3 4 5 ) list:member 2 } => { :test4b a :SUCCESS }.
{ (  1 2 3 4 5 ) list:member 3 } => { :test4c a :SUCCESS }.
{ (  1 2 3 4 5 ) list:member 4 } => { :test4d a :SUCCESS }.

{ () list:member 1 } => {  :trap1 a :FAILURE}.
{ (  1 2 3 4 5 ) list:member 0 } => { :trap2 a :FAILURE }.

:thing1 :prop1 ( :test5a :test5b :test5c ) .
{ [ is :prop1 of :thing1 ] list:member ?item } => { ?item a :SUCCESS } .

( :foo :bar :baz ) :prop2 :test6a .
( :foo ) :prop2 :test6b .
( :bar :baz ) :prop2 :trap4 .

{ ?a_list list:member :foo .
  ?a_list :prop2 ?thing } => { ?thing a :SUCCESS } .
