forum programm...@jsoftware.com
Sent: Sunday, November 17, 2013 7:22:43 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit
definitionspossible?
Pascal Jasmin writes:
But I'd like to see the first before I ask for another, and the approach
of
finding them all
To: Programming forum programm...@jsoftware.com
Sent: Sunday, November 17, 2013 7:22:43 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit
definitionspossible?
Pascal Jasmin writes:
But I'd like to see the first before I ask for another, and the approach
of
finding
was hoping that there is
a version with {. and $:@:}.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 8:56:03 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit definitions
$: is recursive where the explicit version it iterative.
--
For information about J forums see http://www.jsoftware.com/forums.htm
, November 16, 2013 8:56:03 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit
definitions possible?
({~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
8
({.~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
4 2 6 4
Now you might argue that this is not the same thing. But it is the same
result
: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
Pascal Jasmin writes:
But I'd like to see the first before I ask for another, and the approach
of
finding them all and then returning the first is not practical.
Arie Groeneveld writes:
{.@(}.^:(6
...@jsoftware.com
Sent: Sunday, November 17, 2013 7:22:43 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit
definitionspossible?
Pascal Jasmin writes:
But I'd like to see the first before I ask for another, and the approach
of
finding them all and then returning the first
2 8 10 4
8
From: Jose Mario Quintana jose.mario.quint...@gmail.com
To: Programming forum programm...@jsoftware.com
Sent: Sunday, November 17, 2013 11:32:06 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
We can check
2 conjunctions with monad only versions shown for simplicity
repeatuntil =: 2 : 'for_i. y do. if. v_ s =. u i do. s break. end. end.'
repeatwhile =: 2 : 0
out =. i.0
for_i. y do. if. v_ s =. u i do. out break. else. out =. out , s end. end.
)
+: repeatuntil (6 ]) 2 1 3 2 4 5 2
8
+:
Of Pascal Jasmin
Sent: zaterdag 16 november 2013 21:32
To: programm...@jsoftware.com
Subject: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
2 conjunctions with monad only versions shown for simplicity
repeatuntil =: 2 : 'for_i. y do. if. v_ s =. u i do. s break. end
: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
Are you aware of http://www.jsoftware.com/help/dictionary/d202v.htm ?
R.E. Boss
(Add your info to http://www.jsoftware.com/jwiki/Community/Demographics )
-Original Message-
From: programming-boun
$: well enough.
- Original Message -
From: R.E. Boss r.e.b...@planet.nl
To: programm...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 4:54:30 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacitdefinitions
possible?
Are you aware of http
programm...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 6:06:06 PM
Subject: Re: [Jprogramming] repeatuntil and repeat whiletacit
definitions possible?
The third shaded paragraph tells how to do a while loop with ^:
--Kip Murray
Sent from my iPad
On Nov 16, 2013, at 4:34 PM
not understand $: well enough.
- Original Message -
From: R.E. Boss r.e.b...@planet.nl
To: programm...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 4:54:30 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit
definitionspossible?
Are you aware of http
...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 8:56:03 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
({~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
8
({.~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
4 2 6 4
Now you might argue that this is not the same thing
...@jsoftware.com
Cc:
Sent: Saturday, November 16, 2013 8:56:03 PM
Subject: Re: [Jprogramming] repeatuntil and repeat while tacit definitions
possible?
({~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
8
({.~ 1 i.~ 6 ]) +: 2 1 3 2 4 5 2
4 2 6 4
Now you might argue that this is not the same thing
16 matches
Mail list logo