aboutsummaryrefslogtreecommitdiff
path: root/jim-stdlib-1.0.tcl
diff options
context:
space:
mode:
authorantirez <antirez>2005-04-04 07:58:10 +0000
committerantirez <antirez>2005-04-04 07:58:10 +0000
commit98d550ad5da994e68238ad1d4f9ed0134b6ab2e0 (patch)
treed7284a35199cbbd708f612a2f2d503d301a3525d /jim-stdlib-1.0.tcl
parentcff59fd28863ff91079a710b34de19ab4cad4206 (diff)
downloadjimtcl-98d550ad5da994e68238ad1d4f9ed0134b6ab2e0.zip
jimtcl-98d550ad5da994e68238ad1d4f9ed0134b6ab2e0.tar.gz
jimtcl-98d550ad5da994e68238ad1d4f9ed0134b6ab2e0.tar.bz2
Some change in the standard library, a bug about [info body/args]
fixed. some commented work in progress for exposing the Jim parse at script level. Default compilation set to -Os again.
Diffstat (limited to 'jim-stdlib-1.0.tcl')
-rw-r--r--jim-stdlib-1.0.tcl10
1 files changed, 9 insertions, 1 deletions
diff --git a/jim-stdlib-1.0.tcl b/jim-stdlib-1.0.tcl
index a2c555f..9569711 100644
--- a/jim-stdlib-1.0.tcl
+++ b/jim-stdlib-1.0.tcl
@@ -2,7 +2,7 @@
#
# Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
#
-# $Id: jim-stdlib-1.0.tcl,v 1.1 2005/04/02 10:08:33 antirez Exp $
+# $Id: jim-stdlib-1.0.tcl,v 1.2 2005/04/04 07:58:11 antirez Exp $
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -39,3 +39,11 @@ proc repeat {n body} {
uplevel 1 $body
}
}
+
+### List procedures ###
+
+proc first {list} {lindex $list 0}
+proc rest {list} {lrange $list 1 end}
+proc last {list} {lindex $list end}
+
+### EOF ###