/usr/share/doc/ruby-gsl/examples/permutation/permutation.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env ruby
require("gsl")
p = GSL::Permutation::alloc(10)
p.init
p.swap(4, 7)
#p p.to_a
p.print
#p p.inverse.to_a
#p p.next.to_a
#p p.next.to_a
#p p.next.to_a
p.printf("%u \n")
|