aboutsummaryrefslogtreecommitdiff
path: root/challenge-167/arne-sommer/raku/gamma-function-int
blob: a632486a8e4eb6e3b16dfc3a622531e1d742ad59 (plain)
1
2
3
4
5
6
7
#! /usr/bin/env raku

use Math::Libgsl::Function :ALL;

unit sub MAIN (Int :u(:$upto) where $upto > 0 = 10);

say "$_ -> { gamma($_).Int }" for 1 .. $upto;