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


Groups > comp.soft-sys.math.mathematica > #4624

Re: Replace

From Ray Koopman <koopman@sfu.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Replace
Date 2011-08-28 08:06 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3csum$5l7$1@smc.vnet.net> (permalink)
References <j35am1$og8$1@smc.vnet.net> <201108260923.FAA04517@smc.vnet.net> <j3annj$hhc$1@smc.vnet.net>

Show all headers | View raw


On Aug 27, 5:25 am, Murray Eisenberg <mur...@math.umass.edu> wrote:
> The expression Alternatives @@@ data does not seem to give what the OP
> seems to have asked for, which is to have each pair of integers not
> only separated by the Alternatives symbol, but also to have each such
> m | N surrounded by parentheses. (Which is why in my previously posted
> reply to the OP I asked exactly what sort of result he really wanted.)

I thought about that but decided that "along the lines of" was the
operative phrase, since Mathematica would ignore the parentheses in
input.

>
> On 8/26/11 5:23 AM, Ray Koopman wrote:
>> On Aug 25, 4:12 am, Sam Korn<s...@kornfamily.com>  wrote:
>>> Hi, another stupid question. I have a list, and each element in
>>> the list is a sublist with a pair of integers. How do I replace
>>> each element along the lines of "{5,6}" with "(5|6)"?
>>>
>>> I know it's a stupid question, and there's probably something
>>> really obvious I'm missing, but I'm really new to Mathematica.
>>>
>>> Thanks!
>>> -Sam
>>
>> Alternatives @@@ data

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Replace Sam Korn <sam@kornfamily.com> - 2011-08-25 11:12 +0000
  Re: Replace Ray Koopman <koopman@sfu.ca> - 2011-08-26 09:27 +0000
  Re: Replace "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-08-26 09:30 +0000
  Re: Replace Peter Breitfeld <phbrf@t-online.de> - 2011-08-26 09:31 +0000
  Re: Replace Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-08-26 09:33 +0000
    Re: Replace Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-08-27 12:22 +0000
      Re: Replace Peter Pein <petsie@dordos.net> - 2011-08-28 08:09 +0000
    Re: Replace Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-08-29 07:49 +0000
  Re: Replace Peter Pein <petsie@dordos.net> - 2011-08-26 09:35 +0000
  Re: Replace Murray Eisenberg <murray@math.umass.edu> - 2011-08-27 12:25 +0000
    Re: Replace Ray Koopman <koopman@sfu.ca> - 2011-08-28 08:06 +0000
  Re: Replace Murray Eisenberg <murray@math.umass.edu> - 2011-08-28 08:13 +0000

csiph-web