Article View: comp.lang.prolog
Article #1163shuffling a list
From: Douglas E. Quale
Date: Wed, 05 Sep 1990 16:58
Date: Wed, 05 Sep 1990 16:58
6 lines
642 bytes
642 bytes
What is the best way to shuffle a list in a functional language? It is easy to shuffle an array fairly, and in Scheme I would use list->vector, shuffle the vector, and use vector->list. -- Doug Quale
Technical Details
Message-ID:
<5056@daffy.cs.wisc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!daffy!saavik.cs.wisc.edu!qualeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!daffy!saavik.cs.wisc.edu!quale From: quale@saavik.cs.wisc.edu (Douglas E. Quale) Newsgroups: comp.lang.prolog,comp.lang.functional Subject: shuffling a list Message-ID: <5056@daffy.cs.wisc.edu> Date: 5 Sep 90 16:58:26 GMT Sender: news@daffy.cs.wisc.edu Organization: University of Wisconsin -- Madison Lines: 6 Originator: quale@saavik.cs.wisc.edu