[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Anyone know why I can't split with an empty string in (c
From: |
joshua |
Subject: |
[Chicken-users] Anyone know why I can't split with an empty string in (chicken irregex)? |
Date: |
Wed, 1 May 2019 23:18:31 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
I can't seem to figure out how to split a string into individual characters.
I could swear this worked before, in Chicken 4.
I'm now using Chicken 5.0.0 running on Void Linux.
#;1> (import (chicken irregex))
; loading /usr/lib/chicken/9/chicken.irregex.import.so ...
#;2> (irregex-split (irregex ",") "foo,bar,baz")
("foo" "bar" "baz")
#;3> (irregex-split (irregex " ") "foo bar baz")
("foo" "bar" "baz")
#;4> (irregex-split (irregex "") "foobarbaz")
() ; wat
#;5> (irregex-split (irregex "\\s*") "foobarbaz")
()
Any ideas?
Thanks,
joshua
- [Chicken-users] Anyone know why I can't split with an empty string in (chicken irregex)?,
joshua <=