Hi! I was trying Lazy and the primes example doesn't work:
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | 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; !
end
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.