Guest User

Untitled

a guest
Apr 25th, 2016
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}}})
RAW Paste Data