Master TCL Programming in 24 hours by Mahajan Vishal
Author:Mahajan, Vishal [Mahajan, Vishal]
Language: eng
Format: epub
Published: 2020-04-12T16:00:00+00:00
In the above example, scan command is used to scan the string str .
3.4 Lab 2
1) set set color1 "red green yellow"
2) set color2 [list red green yellow]
3) set color3 "red {green1 green2} yellow"
4) lindex $color1 0
5) lindex $color1 1
6) lindex $color1 end
7) lindex $color3 1
8) lappend color1 blue
9) lrange $color1 1 2
10) linsert $color1 2 "pink white"
11) lsort -unique $color1
12) lsearch -regexp $color1 .*een
13) set str TCL; split $str ""
14) set str "T C L"; join $str ""
3.5 Lab 2 Solutions
1) red green yellow
2) red green yellow
3) red {green1 green2} yellow
4) red
5) green
6) yellow
7) green1 green2
8) red green yellow blue
9) green yellow
10) red green {pink white} yellow blue
11) blue green red yellow
12) 1
13) T C L
14) TCL
3.6 dict
dict is a dictionary command. It is a key value pair mapping, Tcl uses a hash table to implement a dictionary.
Syntax
dict set dict_name key value
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Art of Coaching Workbook by Elena Aguilar(48065)
Trainspotting by Irvine Welsh(20055)
Twilight of the Idols With the Antichrist and Ecce Homo by Friedrich Nietzsche(17706)
Fangirl by Rainbow Rowell(7834)
Periodization Training for Sports by Tudor Bompa(7328)
Change Your Questions, Change Your Life by Marilee Adams(6641)
This Is How You Lose Her by Junot Diaz(5772)
Grit by Angela Duckworth(4737)
Red Sparrow by Jason Matthews(4666)
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(4575)
Paper Towns by Green John(4169)
Room 212 by Kate Stewart(4107)
Ken Follett - World without end by Ken Follett(3972)
The Sports Rules Book by Human Kinetics(3588)
Housekeeping by Marilynne Robinson(3401)
The Motorcycle Diaries by Ernesto Che Guevara(3332)
Introduction to Kinesiology by Shirl J. Hoffman(3301)
Exercise Technique Manual for Resistance Training by National Strength & Conditioning Association(3292)
Double Down (Diary of a Wimpy Kid Book 11) by Jeff Kinney(3272)