#336
Separation of char and string
Difficulty: | Elementary |
Topics: | String |
Mission: Bikin function untuk split string berdasarkan karakter pemisah dan return a vector of strings. Argumen kedua bentuknya itu regex.
![]() | (= (__ "hello world" #" ") ["hello" "world"]) |
![]() | (= (__ "clojure,scala,haskell" #",") ["clojure" "scala" "haskell"]) |
![]() | (= (__ "one-two-three" #"-") ["one" "two" "three"]) |