🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2193

Re: Array implementations?

#2193
From: Paul Singleton
Date: Mon, 14 Dec 1992 17:08
17 lines
1110 bytes
In article <1g37l6INN4vk@agate.berkeley.edu>, davids@ICSI.Berkeley.EDU (David Petrie Stoutamire) writes:

> What is the best way to represent arrays in prolog?

Aren't there two issues here:

	efficient mapping from integers (contiguous subrange?) or some
	scalar type, look-up-able at small constant cost;

	updateability

An ingenuous answer might be "declaratively" :-)
----
  __   __    Paul Singleton (Mr)           JANET: paul@uk.ac.keele.cs
 |__) (__    Computer Science Dept.        other: paul@cs.keele.ac.uk
 |  .  __).  Keele University, Newcastle,    tel: +44 (0)782 621111 x7355
             Staffs ST5 5BG, ENGLAND         fax: +44 (0)782 713082
Technical Details
Message-ID: <Bz9EA8.BnG@gabriel.keele.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!news
References: <1992Dec11.214051.16892@quintus.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!keele!news
From: csa09@seq1.keele.ac.uk (Paul Singleton)
Newsgroups: comp.lang.prolog
Subject: Re: Array implementations?
Message-ID: <Bz9EA8.BnG@gabriel.keele.ac.uk>
Date: 14 Dec 92 17:08:32 GMT
References: <1992Dec11.214051.16892@quintus.com>
Sender: news@gabriel.keele.ac.uk (UseNet News Service)
Organization: Keele University, England
Lines: 17
Nntp-Posting-Host: seq1.cc.keele.ac.uk