Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 568411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:11:09+00:00 2026-05-13T13:11:09+00:00

I am VERY new at Prolog I am looking for any beginner material on

  • 0

I am VERY new at Prolog I am looking for any beginner material on Prolog. I am very interested in learning the language. Where’ s good place to start? Online preferably

I also am having a bit of trouble writing some code. I need to return a sentence but all I am getting is a list of atoms (i believe that’s the term)

ex I get [the, cat, is, pretty] When I would really like to get [the cat is pretty].

writelist(X):-
    write(X), nl.

How can I turn this atom response into just a normal sentence?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:11:10+00:00Added an answer on May 13, 2026 at 1:11 pm

    I learned it from learnprolognow.org, it’s online, free, and quite good.

    As for your sentence question, you’ll need to print it word by word. Example:

    writelist([]).
    writelist([H|T]):-
        write(H),
        write(' '),
        writelist(T).
    

    First you say that writing an empty list does nothing. Then you say that writing a list whose first element is H and the remainder of which is T entails writing the value of H, a space, then writing the rest of the list the same way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

very new to EC2 and looking to start playing with it through the AWS
Very new to using Raphael.js I'm looking at the tutorials and I am able
Very new to this, and I have no idea where to start. I want
Im very new to Objective-C and am currently learning how to use Xcode and
I'm still very new to prolog, and am trying to wrap my head around
I'm new to PROLOG and am at the very beginning of the exercises on
Very new to FluentNHibernate, but I'm also excited about the area. I've recently started
Very new to JQuery and MVC and webdevelopment over all. I'm now trying to
Very new to XSL (and XML for that matter), but I need to step
Very new mobile developer here... I am trying to retrieve a list of tweets

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.