move {#} to prelude.tcl
This commit is contained in:
		
							parent
							
								
									04f091e4a7
								
							
						
					
					
						commit
						dfa1fc0ed5
					
				@ -1,6 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env tclsh
 | 
					#!/usr/bin/env tclsh
 | 
				
			||||||
#source ../prelude.tcl
 | 
					source ../prelude.tcl
 | 
				
			||||||
proc {#} args {}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc parse input {
 | 
					proc parse input {
 | 
				
			||||||
    return [join [split [read $input] "\n"]]
 | 
					    return [join [split [read $input] "\n"]]
 | 
				
			||||||
 | 
				
			|||||||
@ -2,6 +2,8 @@ package require Tcl 8.6
 | 
				
			|||||||
namespace import tcl::mathfunc::min
 | 
					namespace import tcl::mathfunc::min
 | 
				
			||||||
namespace import tcl::mathfunc::max
 | 
					namespace import tcl::mathfunc::max
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					proc {#} args {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc ladd {list} {
 | 
					proc ladd {list} {
 | 
				
			||||||
    set t 0
 | 
					    set t 0
 | 
				
			||||||
    foreach x $list { incr t $x }
 | 
					    foreach x $list { incr t $x }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user