diff --git a/core/byte-arrays/byte-arrays.factor b/core/byte-arrays/byte-arrays.factor index 5461da2b84..0bcea2651a 100755 --- a/core/byte-arrays/byte-arrays.factor +++ b/core/byte-arrays/byte-arrays.factor @@ -19,3 +19,11 @@ M: byte-array resize resize-byte-array ; INSTANCE: byte-array sequence + +: 1byte-array ( x -- array ) 1 [ set-first ] keep ; inline + +: 2byte-array ( x y -- array ) B{ } 2sequence ; inline + +: 3byte-array ( x y z -- array ) B{ } 3sequence ; inline + +: 4byte-array ( w x y z -- array ) B{ } 4sequence ; inline