uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Add Ranges as collections. #43

Closed tesonep closed 9 years ago

tesonep commented 9 years ago

The message 1.to(10), generates a new WList[1,2,3,4,5,6,7,8,9,10]

The message 1.toByStep(3,0.5) generates WList[1, 1.5, 2, 2.5, 3]

tesonep commented 9 years ago

Ready to be integrated into master

JuanchiRios commented 8 years ago

This should be working in Wollok Diderot? Because if i do 1.to(20) i get

wollok.lang.MessageNotUnderstoodException: 1 does not understand to(p0)
    at wollok.lang.Object.messageNotUnderstood

@tesonep @javierfernandes