Odd words: Difference between revisions

Content added Content deleted
(J: see talk page)
Line 606: Line 606:
14: terminable -> trial
14: terminable -> trial
</pre>
</pre>

=={{header|J}}==

In J, the index of the first character is 0, and the index of the second character is 1, thus:<lang J> >(([-.-.) (#~ $&0 1@#)&.>) (#~ 4<#@>)cutLF fread'unixdict.txt'
annal
motto
posey
scoop
train</lang>

However, some languages have 1 for the index of the first character, which would have given us:<lang J> >(([-.-.) (#~ $&1 0@#)&.>) (#~ 4<#@>)cutLF fread'unixdict.txt'
brain
cider
cried
grata
hades
plain
point
saute
sight
slain
spree
trial</lang>


=={{header|Java}}==
=={{header|Java}}==