SHARE
TWEET

Untitled

a guest Apr 25th, 2016 64 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top