What I want to do is only remove the first item in the list. I checked out the documentation and it seems that lremove is the command that is used to remove items from a list.
Here what I tried:
set list {1 2 3 4 5}
lremove $list 0
puts $list
I would like the above code to print out: 2,3,4,5. But instead it says lremove is invalid command name.