View Single Post
Old 22 August 2015, 21:47   #293
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
Originally Posted by Megol View Post
IMHO such use of ranges makes the code less readable, repetition should always be explicit. How about:
let A=0 to 10 step 2
do print "Hello world!"(A)
i think you miss the point... it doesn't repeat the "print", it applies the range to the string.
Mrs Beanbag is offline  
Page generated in 0.04848 seconds with 9 queries