lrange.n
来自「linux系统下的音频通信」· N 代码 · 共 40 行
N
40 行
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) lrange.n 1.9 96/08/26 13:00:05'\" .so man.macros.TH lrange n 7.4 Tcl "Tcl Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMElrange \- Return one or more adjacent elements from a list.SH SYNOPSIS\fBlrange \fIlist first last\fR.BE.SH DESCRIPTION.PP\fIList\fR must be a valid Tcl list. This command willreturn a new list consisting of elements\fIfirst\fR through \fIlast\fR, inclusive.\fIFirst\fR or \fIlast\fRmay be \fBend\fR (or any abbreviation of it) to refer to the lastelement of the list.If \fIfirst\fR is less than zero, it is treated as if it were zero.If \fIlast\fR is greater than or equal to the number of elementsin the list, then it is treated as if it were \fBend\fR.If \fIfirst\fR is greater than \fIlast\fR then an empty stringis returned.Note: ``\fBlrange \fIlist first first\fR'' does not always produce thesame result as ``\fBlindex \fIlist first\fR'' (although it often doesfor simple fields that aren't enclosed in braces); it does, however,produce exactly the same results as ``\fBlist [lindex \fIlist first\fB]\fR''.SH KEYWORDSelement, list, range, sublist
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?