using dictionary in place of matrix in scan

hi guys,

why won’t d behave as a dyad in scan:

  d:“ab”!((0 1!“ab”);(0 1!“ba”)) 

  "a"d\0 1 0 1 1

'type

when:

  “a”{d[x;y]}\0 1 0 1 1

“abbab”

  “a”{d .(x;y)}\0 1 0 1 1

“abbab”

i’m guessing a dictionary is considered a monad - regardless of whether it returns another dictionary.  is a mixed list considered a dyad as in:

 s (0 1;1 0)\x

regards,

jack.

I think your guess is quite correct.

f[y] and f[x;y] are not always equivalent, as the former works for both monad+monad and dyad, while the latter works only for dyad.

> f[y] and f[x;y] are not always equivalent, ..  while the latter works only for dyad.

q)d:“ab”!((0 1!“ab”);(0 1!“ba”)) 

q)d[“a”;0]

“a”

even so, dictionaries appear to be considered monad?