Spec-Zone.ru › Tcl/Tk

lreverse

Name

lreverse — Reverse the order of a list

Synopsis

lreverse list

Description

The lreverse command returns a list that has the same elements as its input list, list, except with the elements in the reverse order.

Examples

lreverse {a a b c}
      → c b a a
lreverse {a b {c d} e f}
      → f e {c d} b a

See also

list, lsearch, lsort

Copyright © 2006 by Donal K. Fellows. All rights reserved.

Licensed under Tcl/Tk terms
https://www.tcl.tk/man/tcl/TclCmd/lreverse.htm

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API