[Jprogramming] speaking of amend...
Erling Hellenäs
erling at erlinghellenas.se
Sat Jul 12 10:02:05 UTC 2014
f=:;&.>
$ f i.2 3 2
2 3 2
$&.> f i.2 3 2
┌─┬─┐
│1│1│
├─┼─┤
│1│1│
├─┼─┤
│1│1│
└─┴─┘
┌─┬─┐
│1│1│
├─┼─┤
│1│1│
├─┼─┤
│1│1│
└─┴─┘
$ <"0 i.2 3 2
2 3 2
$&.> <"0 i.2 3 2
┌┬┐
│││
├┼┤
│││
├┼┤
│││
└┴┘
┌┬┐
│││
├┼┤
│││
├┼┤
│││
└┴┘
/Erling
On 2014-07-12 08:52, Linda Alvord wrote:
> I don't understand why these aren't equal.
>
> f=:;&.>
> f i.2 3 2
> ---T--┐
> │0 │1 │
> +--+--+
> │2 │3 │
> +--+--+
> │4 │5 │
> L--+---
>
> ---T--┐
> │6 │7 │
> +--+--+
> │8 │9 │
> +--+--+
> │10│11│
> L--+---
> <"0 i.2 3 2
> ---T--┐
> │0 │1 │
> +--+--+
> │2 │3 │
> +--+--+
> │4 │5 │
> L--+---
>
> ---T--┐
> │6 │7 │
> +--+--+
> │8 │9 │
> +--+--+
> │10│11│
> L--+---
>
> (f i.2 3 2)-:<"0 i.2 3 2
>
>
> Linda
>
>
>
> -----Original Message-----
> From: programming-bounces at forums.jsoftware.com
> [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Linda Alvord
> Sent: Friday, July 11, 2014 10:53 PM
> To: programming at jsoftware.com
> Subject: Re: [Jprogramming] speaking of amend...
>
> I'm sure I'll learn lots of better ways than this.
>
> f=: 13 :'3 1 2$,(x}i.2 3){((*/0 1{$y),2)$,y'
> f
> 4 : '3 1 2$,(x}i.2 3){((*/0 1{$y),2)$,y'
>
> 0 1 1 f i.2 3 2
> 0 1
>
> 8 9
>
> 10 11
>
> Linda
>
> -----Original Message-----
> From: programming-bounces at forums.jsoftware.com
> [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of 'Pascal
> Jasmin' via Programming
> Sent: Friday, July 11, 2014 8:57 PM
> To: Programming forum
> Subject: [Jprogramming] speaking of amend...
>
> what verb v (or I guess adverb is ok) could I use to get
>
> 0 1 1 v i. 2 3 2
>
> 0 1
> 8 9
> 10 11
>
>
> i.2 3 2
> 0 1
> 2 3
> 4 5
> 6 7
> 8 9
> 10 11
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list