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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by trint

  1. trint

    Haskell help, anyone?

    Hi All, Although not prolog based. I'm trying to write a function in Haskell 'prod lst1 lst2' which sums the products of corresponding elements of two lists. e.g prod [1,2,3] [4,5,6] = 1*4 + 2*5 + 3*6 =32 I'm think the 'map' function is to be used but i dont know how to implement the...
  2. trint

    Parameter accumulator

    cheers pimi, you're a star!! ;), trint
  3. trint

    Parameter accumulator

    well I have the following facts and clauses below, its just that I need to append the lists somehow and I'm a little unsure, an example would be ?- canChange(warrenStreet, charingCross, R). should return a list of all stations and lines used but not use the same station twice, i.e. loop. so...
  4. trint

    Parameter accumulator

    I'm making a Londen underground tracking program. I have already created the code that finds and places the stations in a list. Its just that my program builds up the same list of stations twice over, once as a route and once as the avoid list, how can i use the accumulator parameter to tackle this.

Part and Inventory Search

Back
Top