in reply to [Perl 6]: Small discoveries VII, Flattening
Note the trailing comma.
Which is horribly like some Python I've had to write. I hate it when syntax DWIMs the wrong way.
> python >>> x = (1) >>> x 1 >>> x = (1,) >>> x (1,)
So (1) is not a tuple, but (1,) is?
Back to Perl...
Does the number of trailing commas affect anything? E.g., [[["hello"],,,,],,,,]. (Because in Python it's a syntax error!)
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [Perl 6]: Small discoveries VII, Flattening
by Anonymous Monk on Oct 31, 2017 at 14:22 UTC | |
by Anonymous Monk on Oct 31, 2017 at 16:51 UTC | |
by Anonymous Monk on Oct 31, 2017 at 17:08 UTC |
In Section
Meditations