JanetDocsPlaygroundI'm feeling luckyGitHub sign in

buffer/blit



    cfunction
    src/core/buffer.c on line 405, column 1

    (buffer/blit dest src &opt dest-start src-start src-end)

    Insert the contents of `src` into `dest`. Can optionally take 
    indices that indicate which part of `src` to copy into which part 
    of `dest`. Indices can be negative in order to index from the end 
    of `src` or `dest`. Returns `dest`.


2 examplesSign in to add an example
Loading...
(let [buf @"hello"]
  (buffer/blit buf "zany world" -1 4))
# => @"hello world"
sogaiuPlayground
(let [buf @"hello"]
  (buffer/blit buf " there" -1))
# => @"hello there"
sogaiuPlayground