<div class="notebook"> <div class="nb-cell markdown" name="md1"> ## 09.04. functor/3 </div> <div class="nb-cell markdown" name="md2"> Was antwortet Prolog auf die folgenden Anfragen? Überlege dir, wie die Rückgabe aussieht und überprüfe anschließend mit dem 'Run Query'-Button rechts, ob du recht hattest. </div> <div class="nb-cell query" name="q9"> functor(member(a,[a,b,c]),F,3). </div> <div class="nb-cell query" name="q8"> functor(member(a,[a,b,c]),F,A). </div> <div class="nb-cell query" name="q7"> functor(mag(popeye,eis),mag,2). </div> <div class="nb-cell query" name="q6"> functor(4+5*6,F,A). </div> <div class="nb-cell query" name="q5"> functor(4+5-6,F,A). </div> <div class="nb-cell query" name="q4"> functor([a,b,c],F,A). </div> <div class="nb-cell query" name="q3"> functor(C,hund,2). </div> <div class="nb-cell query" name="q2"> functor(C,wizard(harry),2). </div> <div class="nb-cell query" name="q1"> functor(C,7,2). </div> <div class="nb-cell query" name="q12"> functor(X=a,F,A). </div> <div class="nb-cell query" name="q11"> functor(4+5*6 < 4+5,F,A). </div> <div class="nb-cell query" name="q10"> functor(X is 4+5*6,F,A). </div> </div>