There are generic versions of the sequence function implemented as :%opSq in builtins\VM\pType.e and :%opSq0 in builtins\VM\pJcc.e that the compiler only invokes as a last resort, preferring instead to inline that functionality if the argument is known to be assigned or the result variable, if any, is known to be an integer, ie does not require decref/dealloc. Note that opSeq is an equality test, and must not be confused with opSq, which is the sequence test. The compiler may also completely omit the test and/or any related code, if type inference/propagation determines that the result will always be true or always false.
The sq_seq() routine can be used to apply a sequence() test to all top-level elements of a sequence, eg sq_seq({1,1.5,"string",{1,1.5,"string",{}}) ==>; {false,false,true,true}. That routine returns a single true/false if passed an atom or string, otherwise a "flat" sequence of true/false of the same length as the input argument. Note there are no known valid uses of the sq_seq() routine, as yet.