Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-03 Thread Ric Sherlock
An alternative for generating Chris' allhours using the foreign conjunction 8!:0 allhours=: , ('q';'q') (8!:0"0 _) _1 |. >: i. 12 On Wed, Apr 2, 2014 at 11:59 PM, chris burke wrote: > The argument i.24 to fmthours may be unnecessary. > > > In any case, you can generate all hours as: > > > allh

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-03 Thread glts
On Wed, Apr 2, 2014 at 11:12 AM, glts <676c7...@gmail.com> wrote: >fmthours i.24 > ┌┬───┬───┬───┬───┬───┬───┬───┬───┬───┬┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬┬┐ > │12am│1am│2am│3am│4am│5am│6am│7am│8am│9am│10am│11am│12pm│1pm│2pm│3pm│4pm│5pm│6pm│7pm│8pm│9pm│10pm│11pm│ >

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread Raul Miller
---TTTTTT┐ > >> │ 1am│ 2am│ 3am│ 4am│ 5am│ 6am│ 7am│ 8am│ 9am│10am│11am│12am│ 1pm│ 2pm│ > >> 3pm│ > >> 4pm│ 5pm│ 6pm│ 7pm│ 8pm│ 9pm│10pm│11pm│12pm│ > >> > >> > L++++++++----+++----+----

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread Dan Abell
----Original Message----- >> From: programming-boun...@forums.jsoftware.com >> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of glts >> Sent: Wednesday, April 02, 2014 8:12 AM >> To: programm...@jsoftware.com >> Subject: Re: [Jprogramming] Pretty pr

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread Roger Hui
ogramming-boun...@forums.jsoftware.com] On Behalf Of glts > Sent: Wednesday, April 02, 2014 8:12 AM > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Pretty print hours of the 12-hour clock > > On Wed, Apr 2, 2014 at 12:59 PM, chris burke wrote: > > The argument i.24

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread Linda Alvord
a virtuoso. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of glts Sent: Wednesday, April 02, 2014 8:12 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Pretty print hours of the 12-hour c

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread glts
On Wed, Apr 2, 2014 at 12:59 PM, chris burke wrote: > The argument i.24 to fmthours may be unnecessary. > > > In any case, you can generate all hours as: > > > allhours=: , (;:'am pm') (,~":) each/ _1|.1+i.12 > > > Then fmthours is: > > > fmthours=: {&allhours > > > For example; > > >fmthours

Re: [Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread chris burke
The argument i.24 to fmthours may be unnecessary. In any case, you can generate all hours as: allhours=: , (;:'am pm') (,~":) each/ _1|.1+i.12 Then fmthours is: fmthours=: {&allhours For example; fmthours 4 +---+ |4am| +---+ fmthours i.24 ++---+---+---+... |12am|1am|2am|

[Jprogramming] Pretty print hours of the 12-hour clock

2014-04-02 Thread glts
fmthours i.24 ┌┬───┬───┬───┬───┬───┬───┬───┬───┬───┬┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬┬┐ │12am│1am│2am│3am│4am│5am│6am│7am│8am│9am│10am│11am│12pm│1pm│2pm│3pm│4pm│5pm│6pm│7pm│8pm│9pm│10pm│11pm│ └┴───┴───┴───┴───┴───┴───┴───┴───┴───┴┴┴┴───┴───┴───┴───┴─