Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: aa676
  • Content: Threads
  • Order by date
  1. aa676

    Create a list of empty lists

    Hello i need to create a list of empty lists eg [ [], [] , [] , []] but the problem is, i need the exact number of empty lists provided from the input.. for example if i give createEptyLists(4,X). it should return X= [ [], [] , [] , [] ]. how can i implement this " for i=<InputNumberOfLists" ?
  2. aa676

    Prolog Read a function from a file

    Hi, I need to build this program to read from a file sentences like "three plus zero." (all of them 3 words and just a simple operation) and return the result of the arithmetic operation. The solution I thought of was to use read_atom to store each word in X,Y,Z atoms. then make a list of them...

Part and Inventory Search

Back
Top