Home of Spreadsheet Lisp (SL)
DEFINE( LENGTH, LAMBDA( input, TYPEDISPATCH( input, "String", LEN(input), "Range", COUNTA(input), otherwise, THROWERROR())))