blob: 7b54d3562946c60c3fec02b4317ff9af3dd6cc57 [file] [log] [blame]
###
## lempty <list>
##
## Returns 1 if <list> is empty or 0 if it has any elements. This command
## emulates the TclX lempty command.
##
## $Id$
##
###
namespace eval ::rivet {
proc lempty {list} {
if {[catch {llength $list} len]} { return 0 }
return [expr {$len == 0}]
}
}