#!/bin/bash
# length.sh
E_NO_ARGS=65
if [ $# -eq 0 ] # Must have command-line args to demo script.
then
echo "Please invoke this script with one or more command-line arguments."
exit $E_NO_ARGS
var arr=new Array(1,2,3,4,5,6,7,8);
with (document)
{
write("数组长度:"+arr.length);
write("新增一个元素")
arr[arr.length]=arr.length+1;
write("数组长度:"+arr.length);
function l = length(x)
%LENGTH (interval) computes the length of an interval matrix.
%
%b4m - datatype interval Version 1.02 (c) 25.9.1998 Jens Zemke
%
% DESCRIPTION:
% 'length' is
function n = length(p)
% Returns number of vertices
% Copyright 1998 by Toby Driscoll.
% $Id: length.m 7 1998-05-10 04:37:19Z tad $
n = length(p.vertex);