Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!purdue!haven!umbc3.umbc.edu!math16.math.umbc.edu!rouben From: rouben@math16.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.sys.handhelds Subject: Re: Good ways to... Keywords: delete list lower-case conversion Message-ID: <1991Apr21.005851.10416@umbc3.umbc.edu> Date: 21 Apr 91 00:58:51 GMT References: <1991Apr20.222545.12776@soph.cs.ubc.ca> Sender: newspost@umbc3.umbc.edu (News posting account) Reply-To: rouben@math16.math.umbc.edu.UUCP (Rouben Rostamian) Organization: Mathematics Department University of Maryland, Baltimore County Lines: 33 In article <1991Apr20.222545.12776@soph.cs.ubc.ca> b2676870@soph.cs.ubc.ca (wilson w ma) writes: >How is one suppose to delete elments from a list? I.e., if I've a list of >say 10 items and want to delete the 5th item, how do I do it? ...[Program deleted] Here is a shorter program to remove a given element from a list. \<< DUP2 1 SWAP 1 - SUB 3 ROLLD 1 + OVER SIZE SUB + \>> Example: 2: { 1 2 3 4 5 6 } 1: 2 Efter evaluating the program you will have: 1: { 1 3 4 5 6 } Hope that this helps. Regarding your other qustion on converting mixed strings to uppercase, have you tried using NUM? Although I have not tried, I would think that it would be rather easy to write a program using NUM for this purpose. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. internet: rouben@math9.math.umbc.edu