News for hackers. Stuff that matters.
Re:Python’s tug of war between beginner-friendly and advance... by ahgamut on Thursday February 04, 2021 @10:34PM (#26032784)
J has the verbs behead[0] (for xs[1:]) and curtail[1] (for xs[:-1]), so the J oneliner for the above code would be

    <./ ([&}. - }:) xs 
[0] https://code.jsoftware.com/wiki/Vocabulary/curlyrtdot [1] https://code.jsoftware.com/wiki/Vocabulary/curlyrtco
Re:Python’s tug of war between beginner-friendly and advance... by floxy on Friday February 05, 2021 @07:11PM (#26042824)
Thanks. The "right way" to do max of the differences (with the sort) in J might be something like?

  >./-2-/\/:~ xs