« first day (2026 days earlier)      last day (621 days later) » 

5:41 PM
Hello there, suppose I have a nested vector v←(1 2)(3 4) and another nested vector say n←(1 2 3)(4 5 6)(7 8 9). Now suppose I have a vector of indices into n like i←2 3, what is the most concise/idiomatic way replace the elements of n at i with corresponding elements of v, so that in this case I get n to be (1 2 3)(1 2)(3 4)?
 
v@i⊢n?
 
@rak1507 Thanks. Just a few moments ago, I remembered about @. The main thing that was confusing me was that I was focused too much on bracket indexing.
@rak1507 Can you say n←(v@b)⊢n without repeating n?
 
 
3 hours later…
8:51 PM
@11Kilobytes you can do n(⊣@b)⍨←v but imo that's a bit cryptic
 
9:14 PM
@11Kilobytes n[i]←v
 
Is there no way to directly index a nested array with nested boolean data? I'm guessing that's what the Under operator (⍢) is doing, right? But what about in current Dyalog APL?
It'd be nice to generalize 12.99@(13∘=) since 13= 10 (12 13) 'abc'does still give a meaningful result: 0 0 1 0 0 0
Also, @Adám, I responded to the cataloguing trial email!
 
9:29 PM
Yes, I'll get back to you eventually.
@AviFS ⎕←12.99@(⊂2 2)⊢10(12 13)'abc'
 
@Adám
┌──┬────────┬───┐
│10│12 12.99│abc│
└──┴────────┴───┘
 
10:00 PM
Who uses the dyalog layout on fedora 36? Like I've setxkbmap, but since fedora doesn't use xorg it doesn't permeate the OS completely. I can't type e.g. here, often I have to run the command again.
 
 
1 hour later…
11:09 PM
ok, have a working solution. If you are using GNOME 42 + wayland then you can probably do something like "sudo localectl set-x11-keymap us,apl apple_laptop ,dyalog grp:switch" and then install GNOME Tweaks and proceed as in the instructions here: aplwiki.com/wiki/Typing_glyphs_on_Linux#Wayland.
The key step though is that you have to disable the way that GNOME's default keyboard configuration mechanism can interfere with the GNOME Tweaks by going to the Settings application > Keyboard and Mouse > Special Character Entry and clicking on "Alternate Characters Entry." Change it from say "Left Alt" to "Menu Key" or another key that you don't use.
 
11:33 PM
@Adám Do you mind explaining that?!
 

« first day (2026 days earlier)      last day (621 days later) »