zlacker

[parent] [thread] 1 comments
1. vidarh+(OP)[view] [source] 2026-01-21 14:40:03
If you anticipate that need, you just store the gradient as an array of strings, and you still then only need a trivial lookup.
replies(1): >>e12e+D02
2. e12e+D02[view] [source] 2026-01-22 01:30:57
>>vidarh+(OP)
I was more commenting on the language design here; the idea of indexing into a UTF-8 string and returning an ASCII character. What does the index count? Bytes? There doesn't seem to be a way to get UTF-8 characters from strings?

Ed: There seems to be an UTF-8 library:

https://github.com/jordanhubbard/nanolang/tree/main/modules/...

[go to top]