ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.4k stars 43 forks source link

ensure(Int, NumRange) #488 #590

Closed antonio-pedro99 closed 1 year ago

antonio-pedro99 commented 1 year ago

Solved issue #488

I am not really sure what to do with ranges that does not include an end. But my assumption is, if a range does not include an end and the first element in the range is less than n, then the first element should be returned and n should be returned otherwise.

antonio-pedro99 commented 1 year ago

I just released some issues. I will create an ew PR