Question: p Exercise 1.3 [m] Write a function that counts the number of atoms in an expression. For example: ( count - a toms ' (

p Exercise 1.3 [m] Write a function that counts the number of atoms in an expression.

For example: ( count - a toms ' ( a ( b ) c ) ) = 3. Notice that there is something of an ambiguity in this: should ( a n i 1 c ) count as three atoms, or as two, because it is equivalent to ( a ( 1 c ) ?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Management And Artificial Intelligence Questions!