[ f ] [
[
{ integer } declare iota [ ] map
- ] \ >fixnum inlined?
+ ] \ integer>fixnum inlined?
] unit-test
[ f ] [
[
{ integer } declare { } set-nth-unsafe
- ] \ >fixnum inlined?
+ ] \ integer>fixnum inlined?
] unit-test
[ f ] [
[ most-positive-fixnum 2 * 2 + V{ } clone set-length ]
must-fail
-[ ] [
+[
10 V{ } [ set-length ] keep
0.5 swap set-length
-] unit-test
+] must-fail
[ V{ "a" "b" } V{ } ] [ { "X" "a" "b" } { "X" } drop-prefix [ >vector ] bi@ ] unit-test
-[ 0.5 10 iota nth ] [ no-method? ] must-fail-with
[ 0.5 { 1 2 3 } nth ] [ no-method? ] must-fail-with
[ 0.5 "asdfasdf" nth ] [ no-method? ] must-fail-with
: iota ( n -- iota ) \ iota boa ; inline
M: iota length n>> ; inline
-M: iota nth-unsafe drop integer>fixnum ; inline
+M: iota nth-unsafe drop ; inline
INSTANCE: iota immutable-sequence