Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

14
  • 1
    $\begingroup$ +1 This is the first answer to this question I understand by just reading it :) $\endgroup$ Commented Aug 3, 2014 at 21:37
  • $\begingroup$ Although I think you know I fully agree with you regarding "I am fond of infix notation ... more readable than the 'conventional'" it seems most people disagree. I'm really not sure why. Simple unfamiliarity? $\endgroup$ Commented Aug 4, 2014 at 0:03
  • 1
    $\begingroup$ Er… is the /* in the last example irreplaceable? // seems to have the same effect. $\endgroup$ Commented Aug 4, 2014 at 4:40
  • 1
    $\begingroup$ @xzczd, yes you could use // the way I have written it. Perhaps that would be clearer actually. $\endgroup$ Commented Aug 4, 2014 at 8:40
  • 1
    $\begingroup$ I agree that a // Position[0] // SortBy[Last] // Map[Max] seems (the most) natural. Perhaps even more so than Map[Max] @* SortBy[Last] @* Position[0] @* a due to the spacing and a natural proclivity to read left-to-right. I suspect that increased postfix usage maybe end up being one of the main effects of operator forms on code bases. $\endgroup$ Commented Aug 4, 2014 at 13:01