diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-06-13 23:21:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-06-13 23:21:06 -0700 |
commit | ae3a14cf5608ea9d56a7bef279cf6cade21c0a7c (patch) | |
tree | e870b402b4e5edd31bc072617a74f02f92ea7ed0 | |
parent | 76158af228e000f64df2a2b57d6b8659449d8257 (diff) | |
download | txr-ae3a14cf5608ea9d56a7bef279cf6cade21c0a7c.tar.gz txr-ae3a14cf5608ea9d56a7bef279cf6cade21c0a7c.tar.bz2 txr-ae3a14cf5608ea9d56a7bef279cf6cade21c0a7c.zip |
perm: small streamlining in string case.
* combi.c (perm_str): We don't have to convert the string
to a list and then vector, since we have vec_seq.
-rw-r--r-- | combi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ static val perm_str(val str, val k) if (k == zero) { return cons(string(L""), nil); } else { - val state = perm_init(vec_list(list_str(str)), k, nil); + val state = perm_init(vec_seq(str), k, nil); if (!state) return nil; return generate(func_f0(state, perm_while_fun), |