1 USING: kernel math namespaces sequences sbufs strings
5 [ 5 ] [ "Hello" >sbuf length ] unit-test
9 "Hello" "buf" get push-all
10 "buf" get clone "buf-clone" set
11 "World" "buf-clone" get push-all
15 [ CHAR: h ] [ 0 SBUF" hello world" nth ] unit-test
17 CHAR: H 0 SBUF" hello world" [ set-nth ] keep first
20 [ SBUF" x" ] [ 1 <sbuf> CHAR: x >bignum over push ] unit-test
22 [ fixnum ] [ 1 >bignum SBUF" " new-sequence length class ] unit-test
24 [ fixnum ] [ 1 >bignum [ ] SBUF" " map-as length class ] unit-test