KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you write a Prolog procedure map(List, PredName, Result) that applies the predicate PredName(Arg, Res) to the elements of List , and returns the result in the list Result ? For example: test(N,R) :- R is N*N. ?- map([3,5,-2], test, L). L = [9,25,4] ; no
Tags (comma-separated)
Save Edits
Cancel