all repos — h3rald @ dee74cf3d8aac810bdd0ba641e8de61cc8f33121

The sources of https://h3rald.com

#DecemberAdventure
h3rald h3rald@h3rald.com
Sun, 08 Dec 2024 17:35:37 +0100
commit

dee74cf3d8aac810bdd0ba641e8de61cc8f33121

parent

4c04bb8acde3037c99224aed0bd231338e9a0b9b

1 files changed, 14 insertions(+), 0 deletions(-)

jump to
M contents/articles/december-adventure-2024.mdcontents/articles/december-adventure-2024.md

@@ -230,3 +230,17 @@ #endif

``` Anyhow, for now I am going to mark the WASM build as *experimental*, and be done with it. In other news, I also added support for all platforms and for αcτµαlly pδrταblε εxεcµταblε in the [CI workflow](https://github.com/h3rald/hex/blob/master/.github/workflows/ci.yml) that builds hex and runs the tests. + +### Day #8 + +Today I decided to enhance the comparison operators to support quotations as well. Not the most useful feature in the world, but for completeness' sake, we should also lexicographic comparison of quotations, also because `==` and `!=` already supported quotations anyway. + +Another thing I added was support for splitting a string by character by specifying a blank string as separator: + +``` +"hello" "" split ; => ("h" "e" "l" "l" "o") +``` + +This feature is standard in most programming languages and could be quote useful to work on strings. + +Last but not least, I also did some tidying in the repo and organized things neatly in sub-folders.