Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Shashi Gowda
    Hello, why not have a type parameter on List denoting the type of the nodes in the List?
    Hello, new to this app so let's see how it works. Any ideas on what cool package one could create to demonstrate functional programming in Julia? I'm thinking something along the lines of a tutorial.
    Andrei Berceanu
    can julia be considered a FP language?
    Gideon Dresdner
    Hi everyone! I'm messing around with a large file that I want to pipe through some functions. I'd really love to be able to do something like what is outlined in the lineseq example. How would that work?
    Ismael Venegas Castelló

    Hi! I was trying Lazy and the primes example doesn't work:

       _       _ _(_)_     |  A fresh approach to technical computing
      (_)     | (_) (_)    |  Documentation:
       _ _   _| |_  __ _   |  Type "?help" for help.
      | | | | | | |/ _` |  |
      | | |_| | | | (_| |  |  Version 0.4.3 (2016-01-12 21:37 UTC)
     _/ |\__'_|_|_|\__'_|  |
    |__/                   |  x86_64-unknown-linux-gnu
    julia> using Lazy
    julia> import Lazy: take, range
    julia> isprime(n) = @>> primes begin
               take_while(x -> x <= sqrt(n))
               map(x -> n % x == 0)
               any; !
    isprime (generic function with 1 method)
    julia> primes = filter(isprime, range(2))
    Error showing value of type Lazy.LazyList:
    ERROR: UndefVarError: take_while not defined
     in isprime at none:1
     in anonymous at /home/ismaelvc/.julia/v0.4/Lazy/src/Lazy.jl:84
     in isempty at /home/ismaelvc/.julia/v0.4/Lazy/src/Lazy.jl:80
     in writemime at /home/ismaelvc/.julia/v0.4/Lazy/src/Lazy.jl:130
     in display at REPL.jl:114
     in display at REPL.jl:117
     [inlined code] from multimedia.jl:151
     in display at multimedia.jl:162
     in print_response at REPL.jl:134
     in print_response at REPL.jl:121
     in anonymous at REPL.jl:624
    julia> Pkg.status("Lazy")
     - Lazy                          0.10.1

    I found no reference to take_while in the repo, other than inside this test.

    Hi I was wondering if lazy supports multidimensional lists.