Thanks everyone - Chris, Brian, Jasmin. Now I understand the problem and know
how to figure the best solution.
Much appreciated.
Rodney.
On Wednesday, December 16, 2015 4:53 PM, chris burke
wrote:
> The variable values are not automatically saved;
The definitions of the variabl
you may have some typos in your definitions,
clue=:([^:(__ e.])__&".)&.> > cutLF wd'clippaste'
this is a very neat ranged query language though:
I. dbflat ([: *./ (_ ~: [) # ((>: {.) *. (<: {:))"_1)"1 2 rcv
- Original Message -
From: Henry Rich
To: programm...@jsoftware.com
Sent
> The variable values are not automatically saved;
The definitions of the variables are in his script, which is automatically
saved. He needs to rerun the script when he loads J again. Also, most
likely the variables should be defined with a global assignment, not local.
On 16 December 2015 at
Rodney,
The variable values are not automatically saved; you have to write a file
with the values. The J Primer has a short demo of that process that can
guide you. See the following link.
http://www.jsoftware.com/help/primer/files.htm
--
(B=)
---
My version:
clue =: ([^:(__ e. ]) __&".)&.>@;:;._2 wd 'clippaste'
names =: {."1 clue
clueval =: 1 {::"1 clue
NB. Get list of boxes, each containg a list of att:value
db =: <@:(2&}.)@(([^:(__ e. ]) __&".)&.>@;:);._2 ',' -.~ (#~ [: -.
(LF,LF)&E.) wd'clippaste'
NB. Create list of values for e
Dan writes:
"
One frustration I encountered which significantly complicated the solution
was that this:
adverbWhichProducesAnAdverb =: 1 : '/'
anotherAdverb =: ~
totalAdverb =: adverbWhichProducesAnAdverb anotherAdverb
+ totalAdverb
|syntax error: totalAdverb
adventofcode/day/16
My solution is posted at
http://forums.devshed.com/programming-languages/972280-reversed-post2964093.html#post2964093
It may be slightly simpler than the others on this thread. Observing
that the machine output matched the memories, the essence of my solution
is an E. table.
Firefox wasn't a requirement. Rather any browser other than IE was
preferred and I have a preference for Firefox over Chrome. But I am
pleased with the new Edge browser from MS.
On Wed, Dec 16, 2015 at 3:08 PM, Jose Mario Quintana
wrote:
> I was unaware of the Firefox requirement. I have been us
appologies if this is unhelpful or if I misunderstood,
after opening your script file in jqt editor, pressing ctrl-l (or Run | load
(script)) should bring all your definitions into the terminal.
you can type TESTarray in terminal to get its current value.
- Original Message -
From: '
Providing menu commands that did copy/cut/paste is definitely possible
and would fit easily in the existing framework.
I assume you want these actions on the jijx and jijs windows as they
make less (or at least different sense) in the jfile window.
I am surprised this ability isn't already provid
Hi folks:
I do not know what I am doing wrong (while I have moderately extensive
experience with APL, I am very new to J) but it seems that my script windows do
not preserve the values of my variables when I quit and come back next day.
Since it will take several hours to assemble some of my
I was unaware of the Firefox requirement. I have been using lately JHS
with Chrome and Edge within the Windows 10 environment and, above all, with
(a version of) SkipStone within a BusyBox environment on a jailbroken
Kindle Touch (after some tweaking with the socket interface). I have no
previou
Most similar to Ryan's I think,
in =. 1 2 3 5 6 7 8 {"1 ;:"1 ':' -.~"1 a =. clipread ''
f =. ;:"1 (':') -.~"1 a1 =. > cutLF wdclippaste '' NB. tests on clipboard.
part 1:
perm =: i.@! A. i.
combT =: ([: ; ([ ; [: i.@>: -~) ((1 {:: [) ,.&.> [: ,&.>/\. >:&.>@:])^:(0 {::
[) (./ , ( (}."1 in)
I changed those keys to numbers... and cheated a bit with < and >
t=: ;: > cutLF (':,',CR)-.~ fread {:ARGV NB.
|Sue|440|pomeranians|1|samoyeds|9|children|4|
c=: ;: 'children cats samoyeds pomeranians akitas vizslas goldfish trees
cars perfumes' NB. categories
a=: ".@>@{: + (100 * c i. {.) NB. ana
mine:
part1 was straightforward - find key/value from the input in the
ticker. If all 3 key/values from the row match the ticker, then it's a
matching row
part2 was a bit trickier - I added on the operator to the input (e.g.
<5 for goldfish) then found the matching row in the ticker and
evaluated
This one took a while, whew.
load'regex'
Defaults=:', ', ': _',~ ': _, 'joinstring <;._2 [ 0 : 0
children
cats
perfumes
samoyeds
pomeranians
akitas
vizslas
goldfish
trees
cars
)
NB. part 1
parse=: deb L:0@:(':'&cut each)@:(','&cut)
Input0=: ('^Sue \d+: ';'') rxrplc fread'16.txt'
Input=: deb L:0
On Tue, Dec 15, 2015 at 6:23 PM, Dan Bron wrote:
> Raul wrote:
>> Yeah... personally, I consider explicit code to be a subset of tacit code.
>
> I think of explicit and tacit as two distinct but related languages. That “:”
> is
> tacit doesn’t mean the programs written in it are tacit: I could
>
Sorry, Here's the first part.
NB.If a square, which one?
A=:'^'
f=: 13 :'((|.|:|.4|+/~i.4),4|+/~i.4){y'
f A
v<^>
<^>v
^>v<
>v<^
^
^
v>^<
>^^'
((f A)-:"1 B)#1+i.8
6
((f A)-:"1 '<>^v')#1+i.8
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:prog
Here's an approach to Santa's problem 3 for elementary school children:
NB. How many get more than one present?
T=:'v^^>vv^^^
^^v
^^^
^v^
v<'''
[U=:p1 28
v^^v>>^^<
$U
28
Now write a verb to test for more than one present.
Linda
-Original Message-
From: progr
19 matches
Mail list logo