diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-12 23:28:52 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-12 23:28:52 -0700 |
commit | 8f72f80a49eeefc27d6790acec0d706d3852ed04 (patch) | |
tree | 2861e41915d34f08f435c53ca126191bb26d7862 /lib.c | |
parent | 07f19fe31673b1d04fd6d8a2b44adac9355f7efe (diff) | |
download | txr-8f72f80a49eeefc27d6790acec0d706d3852ed04.tar.gz txr-8f72f80a49eeefc27d6790acec0d706d3852ed04.tar.bz2 txr-8f72f80a49eeefc27d6790acec0d706d3852ed04.zip |
buffers: replace operation.
* buf.c (replace_buf): New function.
* buf.h (replace_buf): Declared.
* lib.c (replace): Wire in.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10089,7 +10089,7 @@ val replace(val seq, val items, val from, val to) return replace_obj(seq, items, from, to); /* fallthrough */ case BUF: - type_mismatch(lit("~a: operation doesn't support buf type"), self, nao); + return replace_buf(seq, items, from, to); default: type_mismatch(lit("~a: ~s is not a sequence"), self, seq, nao); } |