From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hawkwind.utcs.toronto.edu ([128.100.102.51]) by archone.tamu.edu with SMTP id <18886>; Thu, 19 Dec 1991 18:10:11 -0600 Received: from localhost by hawkwind.utcs.toronto.edu with SMTP id <2742>; Thu, 19 Dec 1991 19:09:41 -0500 To: rc@archone.tamu.edu Subject: how would you do this in rc Date: Thu, 19 Dec 1991 18:09:33 -0600 From: Chris Siebenmann Message-Id: <91Dec19.190941est.2742@hawkwind.utcs.toronto.edu> You have a list l and a string s. What's the most efficient way to not merely find out if s exists in l, but to find its index in l if it does? Is there an efficient method to do this? If there isn't, should there be? :) [probably not; rc is not a general programming language, after all.] - cks