I have a bit of a complaint to make.
I've been trying to edit a lot of posts, to help contribute to the SO community and get reputation, but I've been seeing a lot of the same people reviewing my posts and downvoting them. Most of my edits are to add clarification to badly-worded or not-explained (just a block of code) questions, or to fix grammar for non-English speakers.
But I get frustrated when I got three downvotes on consecutive edits just now. I thought I'd like to get some feedback.
@Deena just rejected this edit (and two others of mine just now), for example:
originally there are 2*3 list items as output, however after xs ++ ys, it become lose bracket and become 6 list items, how to add back bracket every 3 list items
input
[[1,2,3],[4,5,6],[7,8,9],[10,11,12],[13,14,15],[16,17,18]]
output
[[[1,2,3],[4,5,6],[7,8,9]],[[10,11,12],[13,14,15],[16,17,18]]]
if input 3 , bracket every 3 list items
in most simple situation is
[1,2,3,4,5,6,7,8,9,10,11,12]
output
[[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
To this:
Originally there are two sets of three (2*3) list items as output.
However, after xs ++ ys, it will lose the brackets and become 6 list items.
How would I add back the brackets after every 3 list items?
Input:
[[1,2,3],[4,5,6],[7,8,9],[10,11,12],[13,14,15],[16,17,18]]
Output:
[[[1,2,3],[4,5,6],[7,8,9]],[[10,11,12],[13,14,15],[16,17,18]]]
If input 3, bracket every 3 list items.
In the most simple situation, I would like to input something like this:
[1,2,3,4,5,6,7,8,9,10,11,12]
and get this output:
[[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
How could I do this?
(added tags "grouping" and "brackets")
I thought I tried to clarify the question and make it more understandable in more proper English. What did I do wrong?
I would hope it's just erratic rejecting (most of the people who have rejected mine have many more rejections than approvals), especially because most of my edits have been approved. But it may just be bad editing skills.
Thanks for any tips!
Edit: Kind of an afterthought, but I just wanted to add that most of the people who reject have rejected the vast majority of the edits, probably not looking at them closely to see the fine details. For example, @andrewsi rejected my edit (that got approved) and he accepted 2131 edits and rejected 17692 edits: That means for every every nine edits, he rejects an average of (over) 8! I guess it's erratic rejecting or very high standards.
bracket
. Then there are others,function
,parameters
,return
. None of those help.function
,parameters
, andreturn
were relevant ... are they not? It's also more relevant than the OP'sarrays
,methods
,variables
, andfor-loops
--- those were general-programming terms. I thought mine were more specific to the question.