Re: [Jprogramming] Print Custom Alphabet

2012-09-06 Thread bob therriault
Thanks Devon - Nice work. Cheers, bob ps. my apologies for not acknowledging your original idea of a joint submission. I have added your name to the author list through your participation with the explanation. bt On 2012-09-06, at 1:13 PM, Devon McCormick wrote: > Thanks, Bob. > > I just add

Re: [Jprogramming] Print Custom Alphabet

2012-09-06 Thread Devon McCormick
Thanks, Bob. I just added an explanation of the code that's only slightly incomplete - I didn't explain how the "dot" gives a matrix and I'm not up on the nuances of Unicode so I didn't explain the "2#" on the table of numbers. On Thu, Sep 6, 2012 at 1:30 PM, bob therriault wrote: > Hey everyone

Re: [Jprogramming] Print Custom Alphabet

2012-09-06 Thread bob therriault
Hey everyone, I just posted the 43 character solution on the contest site. http://codegolf.stackexchange.com/questions/7036/print-custom-alphabet/7192#7192 Authors listed as: AlvordBossCerovskiCyrEllerHuiLambertMillerQuintanaSchottSherlockTaylorTherriault Let me know if anyone was missed and I

Re: [Jprogramming] Print Custom Alphabet

2012-09-01 Thread Robert Cyr
> >>> e > >>> f > >>> g > >>> h > >>> i > >>> j > >>> k > >>> l > >>> m > >>> n > >>> o > >>> p > >>> q > >>> r > >>> |:1j1#

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Steven Taylor
/i.26)(>:@i.}.[)])"0 '[' >>> >>> #'|:1j1#(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0' >>> 43 >>> >>> Cheers, bob >>> >>> On 2012-08-30, at 7:41 AM, R.E. Boss wrote: >>> >>> Lose 1 cha

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Steven Taylor
t;>> |:1j1#}.@((i.~|.e.#])26{.a.}.~**64+33^'`'I.])"0'S' >>> T U V W X Y Z A B C D E F G H I J K L M N O P Q R >>> >>> Is this, together with Millers solution, the shortest with 45 characters? >>> >>>#'1j1#"1&

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Eldon Eller
he shortest with 45 characters? #'1j1#"1&|:(25{.]}.~1+i.~)&(u:,2#65 97+/i.26)"0' 45 The latter can be shortened 1 char by 1j1#"1&|:(u:,2#65 97+/i.26)&(25{.]}.~1+i.)"0 R.E. Boss -Oorspronkelijk bericht- Van: programming-boun...@forums.jso

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread bob therriault
1j1#"1&|:(25{.]}.~1+i.~)&(u:,2#65 97+/i.26)"0' > 45 > > The latter can be shortened 1 char by > 1j1#"1&|:(u:,2#65 97+/i.26)&(25{.]}.~1+i.)"0 > > > R.E. Boss > > >> -Oorspronkelijk bericht- >> Van: programming-bou

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread R.E. Boss
ming-boun...@forums.jsoftware.com] Namens Robert Cyr > Verzonden: donderdag 30 augustus 2012 8:10 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > > So another correction is needed, and the line is now 3 characters too long. > >

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread R.E. Boss
> Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens Steven Taylor > Verzonden: donderdag 30 augustus 2012 13:19 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > thanks Raul. 44

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Steven Taylor
thanks Raul. 44 characters now. }.|:1j1#a.{~((]+(i.25)|.~-)(98-33^96>]))3&u:'s' e.g. testing, testing,. ... }.|:1j1#a.{~((]+(i.25)|.~-)(98-33^96>]))3&u:'J' k l m n o p q r s t u v w x y a b c d e f g h i }.|:1j1#a.{~((]+(i.25)|.~-)(98-33^96>]))3&u:'J' K L M N O P Q R S T U V W X Y A B

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Raul Miller
On Thu, Aug 30, 2012 at 5:05 AM, Linda Alvord wrote: > This seems to be the shortest version at the moment. > >|:1j1#(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 's' > > If I apply Raul's explanation to the current shortest version, why doesn't > the following function work? > >f=: 13 :'|:1j1#(25

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Linda Alvord
are.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bob therriault Sent: Thursday, August 30, 2012 12:21 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Print Custom Alphabet Hey Robert nice work. If your approach is applied to Raul's we get: |:1j1#(25{

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Raul Miller
Rightmost [-] is just - -- Raul On Thursday, August 30, 2012, Steven Taylor wrote: > 45 characters now > > |:1j1#}.((a.{~[+(i.25)|.~[-])98-33^96>])3&u:'e' > > any more optimisations possible? It might be possible to remove [ ] ~ > > -Steven > > On 30 August 2012 07:44, Steven Taylor wrote: >

Re: [Jprogramming] Print Custom Alphabet

2012-08-30 Thread Steven Taylor
45 characters now |:1j1#}.((a.{~[+(i.25)|.~[-])98-33^96>])3&u:'e' any more optimisations possible? It might be possible to remove [ ] ~ -Steven On 30 August 2012 07:44, Steven Taylor wrote: > forgot spacing, so 51 characters. Way off the pace. > > |:1j1#}.(a.{~{.+(i.25)|.~}.)((],[-])98-33^9

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Steven Taylor
forgot spacing, so 51 characters. Way off the pace. |:1j1#}.(a.{~{.+(i.25)|.~}.)((],[-])98-33^96>])3&u:'e' On 30 August 2012 07:36, Steven Taylor wrote: > A 46 character version. > > }.(a.{~{.+(i.25)|.~}.)((],[-])98-33^96>])3&u:'E' > > -Steven >

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Steven Taylor
A 46 character version. }.(a.{~{.+(i.25)|.~}.)((],[-])98-33^96>])3&u:'E' -Steven -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Robert Cyr
So another correction is needed, and the line is now 3 characters too long. |:1j1#}.@((i.~|.e.#])26{.a.}.~98-33^96>3&u:)"0 's.' I need the 26 character of the alphabet. I therefore remove my excess character after rotation only. Many thanks. Robert Cyr Sent from my iPad On 2012-08-30, at 0

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread bob therriault
Hey Robert nice work. If your approach is applied to Raul's we get: |:1j1#(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 's' t u v w x y z a b c d e f g h i j k l m n o p q r |:1j1#(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 's.' t u v w x y z a b c d e f g h

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Robert Cyr
Thank you guys. With your help the thing is nice and short. It is now only one character longer than Raul Miler's beautiful line. |:1j1#((>:@i.~|.e.#])26{.a.}.~98-33^96>3&u:)"0 'L' I usually avoid tacit programming(too lazy i guess) but I find this type of game a fun way of getting a bit of muc

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Roger Hui
He came to ignore to ignore it as a criticism and took it as a compliment. :-) On Wed, Aug 29, 2012 at 4:00 PM, Jose Mario Quintana < jose.mario.quint...@gmail.com> wrote: > He came to ignore it, to take it as a compliment, or both > (http://www.jsoftware.com/pipermail/programming/2010-Septemb

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Jose Mario Quintana
He came to ignore it, to take it as a compliment, or both (http://www.jsoftware.com/pipermail/programming/2010-September/020457.html)? ;) On Wed, Aug 29, 2012 at 11:47 AM, Roger Hui wrote: >> Is this a blessing or a curse? > > If you are a fan, it's a blessing; if not, it's a curse. Ken told m

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Jose Mario Quintana
[mailto:programming-boun...@forums.jsoftware.com] Namens Robert Cyr >> Verzonden: woensdag 29 augustus 2012 14:02 >> Aan: programm...@jsoftware.com >> Onderwerp: Re: [Jprogramming] Print Custom Alphabet >> >> This one is short at length 52 or 53 with the period added . It

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Roger Hui
> Is this a blessing or a curse? If you are a fan, it's a blessing; if not, it's a curse. Ken told me that he was sometimes accused of including this or that primitive specifically for particular problems (and that's why the notation does so well on those problems). But when the accusation was l

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Raul Miller
On Wed, Aug 29, 2012 at 4:04 AM, Linda Alvord wrote: > My question is from an earlier version: > >1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 'L' > M N O P Q R S T U V W X Y Z A B C D E F G H I J K > > In this phrase, what does the identity [ stand for? > > >:@i.}.[ First off... "sta

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread R.E. Boss
4:02 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > This one is short at length 52 or 53 with the period added . It seems to > meet all requirements including ending with the required character. > > |:1j1#1|."1((i.~|.e.#])26{.a.}.~98-33^

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Robert Cyr
This one is short at length 52 or 53 with the period added . It seems to meet all requirements including ending with the required character. |:1j1#1|."1((i.~|.e.#])26{.a.}.~98-33^96>a.i.])"0'j' k l m n o p q r s t u v w x y z a b c d e f g h i j |:1j1#1|."1((i.~|.e.#])26{.a.}.~98-33^96>a.i.])"0'

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread R.E. Boss
> Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens Raul Miller > Verzonden: woensdag 29 augustus 2012 1:17 > > One interesting issue, here, is that the concise expression in J is > not because J was specifically optimized for this task, but

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Linda Alvord
t: Tuesday, August 28, 2012 3:31 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Print Custom Alphabet And, I think this is one more character shaved off (45 here): 1j1#"1&|:(25{.]}.~1+i.~)&(u:,2#65 97+/i.26)"0 -- Raul ---

Re: [Jprogramming] Print Custom Alphabet

2012-08-29 Thread Linda Alvord
ailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Tuesday, August 28, 2012 3:31 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Print Custom Alphabet And, I think this is one more character shaved off (45 here): 1j1#"1&|:(25{.]}.~1+i.~)&am

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Alan Stebbens
Raul, I very much appreciate your contributions, and this one even more than usual. thanks! -- Alan On Tuesday, August 28, 2012 at 4:16 PM, Raul Miller wrote: > One interesting issue, here, is that the concise expression in J is > not because J was specifically optimized for this task, but b

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
One interesting issue, here, is that the concise expression in J is not because J was specifically optimized for this task, but because J has so many expressions which can be used for this task. But some people had expressed confusion, about how to read one of my drafts: f=:[:|:((i.|.-.)~(a.{~

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Jose Mario Quintana
$ 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 '!@#$%^&*' 25 16 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 '!@#$%^&*' I wonder how faithful the other "solutions" are to the specifications of this "challenge." The argument ('!@#$%^&*') might apply to the specif

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
And, I think this is one more character shaved off (45 here): 1j1#"1&|:(25{.]}.~1+i.~)&(u:,2#65 97+/i.26)"0 -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Tue, Aug 28, 2012 at 2:56 PM, bob therriault wrote: > I'd would say that the specs suggest that the period is added so that the > case of '.a' wouldn't come up as the only two letter arguments allowable end > in a period. Subject to interpretation, I'd call it a feature :) I think your point

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
Here's another couple characters shaved off: 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
I'd say that it's both. More specifically, though, it's not explicitly covered by the specifications, or rather it's my interpretation of the specifications. That said, it's not likely to be compatible with the golf implementation, and this task has "emulate golf" written all over it. (And if thi

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread bob therriault
There's always one in a group isn't there :) I'd would say that the specs suggest that the period is added so that the case of '.a' wouldn't come up as the only two letter arguments allowable end in a period. Subject to interpretation, I'd call it a feature :) By the way, I picked some low han

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Jose Mario Quintana
Speaking of "seems to be an exercise in extreme arbitrariness"; is the following, (1j1#"1&|:(25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.)"0) '.a' b c d e f g h i j k l m n o p q r s t u v w x y z a bug, a feature, or both? On Tue, Aug 28, 2012 at 9

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Devon McCormick
If no one else posts this in the next few days, I will on behalf of "J. BossCerovskiCyrHuiLambertMillerSchottSherlockTherriault" - publicity never hurts. On Tue, Aug 28, 2012 at 9:03 AM, Raul Miller wrote: > On Mon, Aug 27, 2012 at 9:29 PM, bob therriault wrote: >> Raul, you should put that up o

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Mon, Aug 27, 2012 at 9:29 PM, bob therriault wrote: > Raul, you should put that up on the contest site. If anyone wants to post any of these up on the contest, site, feel free. I'm not going to bother, though, myself. This is an interesting exercise, taken by itself, but the "contest" aspect

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Mon, Aug 27, 2012 at 11:24 PM, Ric Sherlock wrote: > The only part of the problem specification that I don't think many of > the J versions are addressing is that the list of letters should be > separated by spaces. That's probably my fault, since I overlooked that part of the spec originally.

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Raul Miller wrote: > Borrowing some ideas from other people in this thread: > >f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0 > > Example uses: > f 'a' > f '-' > f 'C.' > Here is a 4 characters shorter version: ([:|:(25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.)"0) #'([:|:((i.|

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Bob Therriault wrote: > Thanks Ric, > > I guess that why the specs were written, huh? > > New version back up to 63 characters. > > (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k' > l m n o p q r s t u v w x y z a b c d e f g h i j > [...] > A straightforward patch

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread bob therriault
Thanks Ric, I guess that why the specs were written, huh? New version back up to 63 characters. (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k' l m n o p q r s t u v w x y z a b c d e f g h i j (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k.' l m

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Ric Sherlock
There is no monadic e. used here. It is basically (a.{~65 97+/i.26) e. The only part of the problem specification that I don't think many of the J versions are addressing is that the list of letters should be separated by spaces. On Tue, Aug 28, 2012 at 2:48 PM, Brian Schott wrote: >#'[:

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
Hi Brian, I haven't had a chance to really take this apart to see how it ticks, but are you sure that e. is monadic? It looks like the first verb on the left tine, which I usually would think is dyadic, but there may be more things than are dreamt of in my philosophy. Also, I don't think your

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Brian Schott
#'[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0' 48 #'|:@((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0' 47 I don't remember ever seeing monadic e. used. Sweet. --- (B=) On Aug 27, 2012, at 7:04 PM, Raul Miller wrote: > Borrowing some ideas from other people in this thread: > > f=:[:|

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Robert Cyr
Really nice. Perhaps the list should end with with the requested letter. It seems a few more characters will be needed. Cheers Robert Cyr Sent from my iPad On 2012-08-27, at 21:30, bob therriault wrote: > Wow, > > If you take out the assignment and wrap it in brackets, I see a solution in

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
Wow, If you take out the assignment and wrap it in brackets, I see a solution in 50 characters. Impressive Raul, you should put that up on the contest site. Previous leader was Golfscript at 53 I'm gonna take a look at how you did it later tonight. The best thing about these contests with the

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread David Ward Lambert
a' NB. incorrect! ? 25 1 NB. I'm sure I can fix this with 20 additional characters--- > From: bob therriault > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Print Custom Alphabet > Message-ID: <8421272d-bbb9-4eec-bcf7-38fe608f2...@mac.com> > Content-Ty

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Raul Miller
Borrowing some ideas from other people in this thread: f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0 Example uses: f 'a' f '-' f 'C.' -- Raul -- For information about J forums see http://www.jsoftware.com/forums.

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Viktor Cerovski
Bob proposed: (,.@]^:('.'e.[)(a.{~,2#65 97+/i.26)&(25{.[}.~1+[i.0{])) Three characters shorter version: (,.@]^:('.'e.[)25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.) -- View this message in context: http://old.nabble.com/Re%3A-Print-Custom-Alphabet-tp34348204s24193p34348204.html Sent from the J P

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Robert Cyr
Thanks for the comments. Finally, validation gets expensive: www=. 3 :',.^:(''.''e.y),(p<27)#t|." 0 1 ~p=:1+(t=.(97 65+/i.26){a.)i."1 (0{y)' A bit of saving is possible, but I have to admit that a tacit solution is a better bet. Sent from my iPad On 2012-08-27, at 15:30, bob therriault wrote:

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
Oops, should have been (,.@]^:('.'e.[)(a.{~,2#65 97+/i.26)&(25{.[}.~1+[i.0{])) 'u.' v w x y z a b c d e f g h i j k l m n o p q r s t got greedy with the {. cheers, bob On 2012-08-27, at 12:17 PM, bob therriault wrote: > Tweaks get me down to 55 > > (,.@]^:('.'e.[)(a.{~,2#65 97+/i.26)&(26

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
; L >> M >> N >> O >> P >> Q >> R >> S >> >> >> On Mon, Aug 27, 2012 at 6:27 AM, R.E. Boss wrote: >> >>> Nice solution. >>> >>> $(,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26)&(1}.26{.[}.~[i.

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
6:27 AM, R.E. Boss wrote: > >> Nice solution. >> >> $(,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26)&(1}.26{.[}.~[i.{.@])) '[' >> 25 >> >> $(,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26)&(1}.26{.[}.~[i.{.@])) '[.' >> 2

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Robert Cyr
software.com [mailto: > programming-boun...@forums.jsoftware.com] Namens bob therriault > > Verzonden: maandag 27 augustus 2012 10:16 > > Aan: programm...@jsoftware.com > > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > > > Actually the conversion using &am

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Robert Cyr
> > Van: programming-boun...@forums.jsoftware.com [mailto: > programming-boun...@forums.jsoftware.com] Namens bob therriault > > Verzonden: maandag 27 augustus 2012 10:16 > > Aan: programm...@jsoftware.com > > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > >

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread R.E. Boss
un...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens bob therriault > Verzonden: maandag 27 augustus 2012 10:16 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > Actually the conversion using &. wasn't require

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Linda Alvord
MNOPQRSTUV I wondered if it was condensed it could be a useful strategy. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bob therriault Sent: Monday, August 27, 2012 4:16 AM To: programm...@jsoft

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
Actually the conversion using &. wasn't required. (,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26)&(1}.26{.[}.~[i.{.@])) 'B.' C D E F G H I J K L M N O P Q R S T U V W X Y Z A (,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26)&(1}.26{.[}.~[i.{.@])) 'j' klmnopqrstuvwxyzabcdefghi (,.@]^:('.'e.[)(a.{~,,.~65 97+/i.26

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread bob therriault
t)s{ ::($:&}.)~n+1+{.t i.~s=:a.{~32(+,]),~65+n=:i.26[t=.'F' > GHIJKLMNOPQRSTUVWXYZABCDEF > > > R.E. Boss > > >> -Oorspronkelijk bericht- >> Van: programming-boun...@forums.jsoftware.com >> [mailto:programming-boun...@forums.jsoftware.com] Name

Re: [Jprogramming] Print Custom Alphabet

2012-08-26 Thread R.E. Boss
2012 21:17 > Aan: programm...@jsoftware.com > Onderwerp: Re: [Jprogramming] Print Custom Alphabet > > I'm not sure how to express that here. > > Consider, for example: >,.^:('.'e.t)s{ ::($:&}.)~n+1+{.t i.~s=:a.{~,65 97+/26|i.51[n=:i.25[t=. > > Here, I nee

Re: [Jprogramming] Print Custom Alphabet

2012-08-25 Thread Linda Alvord
, August 25, 2012 9:08 AM To: programming Subject: Re: [Jprogramming] Print Custom Alphabet A) NB. The requirement for bad input is "no output". (,.@]^:('.'e.[)(a.{~,65 97+/26|i.51)&(25{.[|.~1+(i.{.))) ::(0$]) '[' BCDEFGHIJKLMNOPQRSTUVWXYZ >

Re: [Jprogramming] Print Custom Alphabet

2012-08-25 Thread David Ward Lambert
A) NB. The requirement for bad input is "no output". (,.@]^:('.'e.[)(a.{~,65 97+/26|i.51)&(25{.[|.~1+(i.{.))) ::(0$]) '[' BCDEFGHIJKLMNOPQRSTUVWXYZ >From: Viktor Cerovski >To: programm...@jsoftware.com >Subject: Re: [Jprogramming] Pri

Re: [Jprogramming] Print Custom Alphabet

2012-08-25 Thread Viktor Cerovski
bob therriault-2 wrote: > > Actual 66 character version after eliminating unnecessary conversions from > a. and back > > (,.@]^:('.'e.[)(a{~(>:i.25)+(a=.a.{~,65 97+/26|i.51)i.{.)) ::(0$]) 'e.' > > Surprisingly, removing assignments makes it one character longer > > (,.@]^:('.'e.[)(a.{~,65 97+

Re: [Jprogramming] Print Custom Alphabet

2012-08-25 Thread bob therriault
Actual 66 character version after eliminating unnecessary conversions from a. and back (,.@]^:('.'e.[)(a{~(>:i.25)+(a=.a.{~,65 97+/26|i.51)i.{.)) ::(0$]) 'e.' Surprisingly, removing assignments makes it one character longer (,.@]^:('.'e.[)(a.{~,65 97+/26|i.51)&([{~(>:i.25)+[i.{.@])) ::(0$]) 'e'

Re: [Jprogramming] Print Custom Alphabet

2012-08-24 Thread David Ward Lambert
NB. choices for input are ARGV_j_ or 1!:1[1 NB. These two sentences are one line apiece ,.^:('.'e.t)s{ ::($:&}.)~n+1+{.t i.~s=:a.{~,65 97+/26| i.51[n=:i.25[t=.1!:1[1 NB. rdm ,.^:('.'e.L)(a.{~(_ 65 _ 97{~64 90 96 122&I.)+(26|i._26 25){~32<:@| ]) ::(0&$)a.i.{.L=.1!:1[1 NB. dwl The concept: index i

Re: [Jprogramming] Print Custom Alphabet

2012-08-24 Thread bob therriault
67 characters with same issue that Raul mentions that argument would need to be quoted. (,.@]^:('.'e.[)(a.{~a{~(>:i.25)+(a=.,65 97+/26|i.51)i.a.i.{.)) ::(0$])'f' spaced below for legibility (,.@]^:('.'e.[) (a.{~a{~(>:i.25)+(a=.,65 97+/26|i.51)i.a.i.{.)) :: (0$]) deci

Re: [Jprogramming] Print Custom Alphabet

2012-08-24 Thread Raul Miller
I'm not sure how to express that here. Consider, for example: ,.^:('.'e.t)s{ ::($:&}.)~n+1+{.t i.~s=:a.{~,65 97+/26|i.51[n=:i.25[t=. Here, I need would need quotes around the argument. And, it's still 70 characters. -- Raul On Fri, Aug 24, 2012 at 3:01 PM, Roger Hui wrote: > I think it is

Re: [Jprogramming] Print Custom Alphabet

2012-08-24 Thread Roger Hui
I think it is customary to assume that the input is just an argument. The q solution so assumes. On Fri, Aug 24, 2012 at 11:38 AM, Raul Miller wrote: > On Fri, Aug 24, 2012 at 2:00 PM, Roger Hui > wrote: > > http://codegolf.stackexchange.com/questions/7036/print-custom-alphabet > > > > The g

Re: [Jprogramming] Print Custom Alphabet

2012-08-24 Thread Raul Miller
On Fri, Aug 24, 2012 at 2:00 PM, Roger Hui wrote: > http://codegolf.stackexchange.com/questions/7036/print-custom-alphabet > > The gauntlet is thrown! The best I can see, right now, is: ,.^:('.'e.t)s{ ::($:&}.)~n+1+s i.{.t=.1!:1##s=:a.{~,65 97+/26|i.51[n=:i.25 And this is 74 characters long -

[Jprogramming] Print Custom Alphabet

2012-08-24 Thread Roger Hui
http://codegolf.stackexchange.com/questions/7036/print-custom-alphabet The gauntlet is thrown! -- For information about J forums see http://www.jsoftware.com/forums.htm