List comprehensions: Difference between revisions

Content added Content deleted
(→‎{{header|Haskell}}: Replaced a red link with an external link to the Haskell Wiki.)
m (→‎{{header|Tcl}}: remove unnecessary [expr])
Line 146: Line 146:
# If necessary, make $script conditional.
# If necessary, make $script conditional.
if {$condition ne "1"} {
if {$condition ne "1"} {
set script [list if {[expr $condition]} $script]
set script [list if $condition $script]
}
}