bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] A better way to insert characters into a character vector?


From: alexweiner
Subject: [Bug-apl] A better way to insert characters into a character vector?
Date: Thu, 27 Aug 2015 19:17:42 -0700
User-agent: Workspace Webmail 5.15.9

Hi Bug APL,

I find that I frequently will do this:
      a←'alex'
      a[3]←⊂'www'
Which results in this:
      a
┌→─────────┐
│al ┌→──┐ x│
│   │www│  │
│   └───┘  │
└∊─────────┘

And then I will do this, because I want a character vector:

      a←⊃,/a
      a
alwwwx


So I guess more simply put. Is there a way to get from "alex" to "alwwwx" without the intermediary nested thing? Am I approaching this problem with the wrong functions?

-Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]