Redudant code for style purposes?
- To: mathgroup at smc.vnet.net
- Subject: [mg132577] Redudant code for style purposes?
- From: andymhancock at gmail.com
- Date: Sun, 13 Apr 2014 05:27:37 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
The Mathematica Cookbook has an example: array = RandomReal[{0, 10}, 20] Table[List @@ array[[i ;; i + 1]], {i, 1, 16}] I'm new to Mathematica, but to me, the "List @@" seems redundant. The statements give the same results if I remove it. Is there a reason for this, either functionally or for clarity?
- Follow-Ups:
- Re: Redudant code for style purposes?
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Redudant code for style purposes?
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Redudant code for style purposes?