JanetDocsI'm feeling luckyGithub sign in

string/from-bytes



    cfunction

    (string/from-bytes & byte-vals)
    
    Creates a string from integer parameters with byte values. All
    integers will be coerced to the range of 1 byte 0-255.


1 exampleSign in to add an example
Loading...
(string/bytes "foo")  # => (102 111 111)
(string/from-bytes 102 111 111)  # => "foo"
(string/from-bytes (splice (string/bytes "foo")))  # => "foo"

(map (fn [x] x)        "foo")  # => @[102 111 111]
(map string/from-bytes "foo")  # => @["f" "o" "o"]

(defn string/explode [s] (map string/from-bytes s))
(string/explode "foo")  # => @["f" "o" "o"]
cellularmitosis