give `1 <= n < 65` as a range in julia in ruby

In Julia, the [<code>1 <= n < 65</code>] range can be created using the <code>1:64</code> range expression.

In Ruby, the equivalent range expression would be <code>1..64</code>.

Here are examples of creating the range in Julia and Ruby:

julia_range = 1:64
19 chars
2 lines
main.rb
ruby_range = 1..64
19 chars
2 lines

Please note that in both Julia and Ruby, the ranges are inclusive of the start value and exclusive of the end value.

related categories

gistlibby LogSnag