F# Equivalent of Python range -
i've started learning f#, , 1 thing i've run don't know way express equivalent of range
function in python. know [1..12]
equivalent of range(1,13). want able range(3, 20, 2)
(i know haskell has [3,5..19]
). how can express this?
seq { 3 .. 2 .. 20 }
results in
3 5 7 9 11 13 15 17 19
Comments
Post a Comment