Giter VIP home page Giter VIP logo

hello-world's People

Contributors

adityagi02 avatar

Watchers

 avatar

hello-world's Issues

missing 'range' method

this is what what I get when I forked this and looked the ranges.jl file

https://github.com/adityagi02/julia/blob/6bea8e3d51ab9f02c2220a84b7c291c477904aa6/base/range.jl#L50-L135

But when I see ranges.jl in JuliaLang/Julia I get this, I'm not getting why, please help me.

"""
range(start[, stop]; length, stop, step=1)

Given a starting value, construct a range either by length or from start to stop,
optionally with a given step (defaults to 1, a UnitRange).
One of length or stop is required. If length, stop, and step are all specified, they must agree.

If length and stop are provided and step is not, the step size will be computed
automatically such that there are length linearly spaced elements in the range.

If step and stop are provided and length is not, the overall range length will be computed
automatically such that the elements are step spaced.

Special care is taken to ensure intermediate values are computed rationally.
To avoid this induced overhead, see the LinRange constructor.

stop may be specified as either a positional or keyword argument.

!!! compat "Julia 1.1"
stop as a positional argument requires at least Julia 1.1.

Examples

julia> range(1, length=100)
1:100

julia> range(1, stop=100)
1:100

julia> range(1, step=5, length=100)
1:5:496

julia> range(1, step=5, stop=100)
1:5:96

julia> range(1, 10, length=101)
1.0:0.09:10.0

julia> range(1, 100, step=5)
1:5:96

"""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.