Advertisement
Guest User

Untitled

a guest
Apr 25th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.36 KB | None | 0 0
  1. filter(x -> gcd(x...) < 2, combinations([1:5; 1:5], 2))
  2. # Filter{Function,Base.Combinations{Array{Int64,1}}}((anonymous function),Base.Combinations{Array{Int64,1}}([1,2,3,4,5,1,2,3,4,5],2))
  3.  
  4. length(filter(x -> gcd(x...) < 2, combinations([1:5; 1:5], 2)))
  5. # MethodError: `length` has no method matching length(::Filter{Function,Base.Combinations{Array{Int64,1}}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement