Simple Prolog Predicates help

From: nissan2000 (billie_at_campus.ie)
Date: 08/10/04

  • Next message: Cesar Rabak: "Re: Simple Prolog Predicates help"
    Date: Tue, 10 Aug 2004 16:04:44 -0400
    
    

    Write a Prolog Predicate 'name' that takes a list and changes/replaces any
    occurance of known names with the word 'blank'. Names: john bob jim joe

    Eg:

    ?-name([joe,and,john,are,friends,of,bobs],R)

    R=[blank,and,blank,are,friends,of,blank]
    More(y/n)

    Any help at all is greatly appreciated.
    Thank you for your time.
    Newbie


  • Next message: Cesar Rabak: "Re: Simple Prolog Predicates help"