Subscribe to MentalFloss Minutes        RSS Feed
- - - - -

Comma Separated Lists

Icon Leave Comment
One thing that I have never really properly gotten a handle on is creating comma separated lists of items from a collection. The issue is that the last entry will print a comma: 1, 2, 3, for example. In the past, I would do all kinds of weird code gymnastics to ensure that trailing comma doesn't print, but today I found a wonderful entry on ...

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

August 2020

S M T W T F S
      1
2345678
9101112 13 1415
16171819202122
23242526272829
3031     

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    1 user(s) viewing

    1 Guests
    0 member(s)
    0 anonymous member(s)