Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #3063

Re: data structure that preserving insertion order

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: data structure that preserving insertion order
Date 2011-04-29 19:17 -0400
Organization A noiseless patient Spider
Message-ID <ipfgu4$5s1$1@dont-email.me> (permalink)
References (2 earlier) <pan.2011.04.29.12.42.37.649000@Owner-PC.com> <0.be0c9ded1648c0c8479c.20110429162315BST.87zkn984kc.fsf@bsb.me.uk> <pan.2011.04.29.16.16.12.154000@Owner-PC.com> <0.8f97b0f95914d356e495.20110429181546BST.87hb9h7zct.fsf@bsb.me.uk> <pan.2011.04.29.17.35.35.60000@Owner-PC.com>

Show all headers | View raw


On 04/29/2011 01:35 PM, Owner wrote:
...
> If you command something like "tr hashtable empttable"

Those arguments tell tr to read from the standard input, perform the
following conversions, and write the result to the standard output:

	* replace every 'h' with an 'e'
	* replace every 'a' with an 'm'
	* replace every 's' with a 'p'
	* replace every 'h' with a 't' (which is a bit confusing)
	etc.

I seriously doubt that this is what you thought it would do.

> I thought inorder needs to be preserved to replace the word,

The order of the elements in the first set relative to the second set is
very important. But

	tr  abc xyz

performs exactly the same transformation as

	tr bca yzx

-- 
James Kuyper

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-28 22:10 -0400
  Re: data structure that preserving insertion order Peter Nilsson <airia@acay.com.au> - 2011-04-28 23:02 -0700
    Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 08:06 -0400
  Re: data structure that preserving insertion order Paul N <gw7rib@aol.com> - 2011-04-29 05:18 -0700
    Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 08:42 -0400
      Re: data structure that preserving insertion order Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-04-29 16:23 +0100
        Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 12:16 -0400
          Re: data structure that preserving insertion order Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-04-29 18:15 +0100
            Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 13:35 -0400
              Re: data structure that preserving insertion order Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-04-29 20:00 +0200
                Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 14:15 -0400
              Re: data structure that preserving insertion order James Kuyper <jameskuyper@verizon.net> - 2011-04-29 19:17 -0400
          Re: data structure that preserving insertion order "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2011-04-29 13:08 -0400
          Re: data structure that preserving insertion order William Ahern <william@wilbur.25thandClement.com> - 2011-04-29 10:53 -0700
            Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 14:17 -0400
              Re: data structure that preserving insertion order James Kuyper <jameskuyper@verizon.net> - 2011-04-29 19:24 -0400
              Re: data structure that preserving insertion order Gene <gene.ressler@gmail.com> - 2011-04-29 16:25 -0700

csiph-web