🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.functional
1 messages
1 total messages Started by Anatol ORLOVSKY Thu, 17 Jan 1991 22:09
Simulating mutable lists in Miranda
#743
Author: Anatol ORLOVSKY
Date: Thu, 17 Jan 1991 22:09
12 lines
953 bytes
  I would like to simulate LISP-like mutable lists in Miranda.
Operators should include list-surgery commands equivalent to LISP's 
rplaca (replace head of list), rplacd (replace tail), constant-time
append, etc.  
The structure itself should have the same generality as the LISP list
structure - i.e. arbitrary nesting and arbitrary element types should be
allowed. 
  How might such a structure be represented as a Miranda algebraic type?

Thanks in advance.
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads