From 843ae71ccbb7fa04ed6516ffac85c8fabbbc30b2 Mon Sep 17 00:00:00 2001 From: Andrew Shitov Date: Wed, 19 Jan 2022 12:38:11 +0100 Subject: gitignore --- .gitignore | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.gitignore b/.gitignore index ba8194b15c..722d5e71d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1 @@ -.idea -.precomp/ -.DS_Store -.vstags .vscode -.*.swp -*~ -*.class -*.exe -*.o -*.obj -*.ali -*.bak -ch-1 -ch-2 -ch_1 -ch_2 -go.mod -go.sum -tags - -# Rust languageoutput directory -target/ -- cgit From 7efce15e1851f8f29a43982dae8f01ccd9071ade Mon Sep 17 00:00:00 2001 From: Andrew Shitov Date: Mon, 31 Jan 2022 09:33:10 +0100 Subject: Task 1, week 150 in Raku --- challenge-150/ash/raku/ch-1.raku | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 challenge-150/ash/raku/ch-1.raku diff --git a/challenge-150/ash/raku/ch-1.raku b/challenge-150/ash/raku/ch-1.raku new file mode 100644 index 0000000000..07e83215d9 --- /dev/null +++ b/challenge-150/ash/raku/ch-1.raku @@ -0,0 +1,11 @@ +my $a = '1234'; +my $b = '5678'; + +my $L = 51; + +my @fib = $a, $b, * ~ * ... *; + +my $long = @fib.first: *.chars >= $L; +my $char = $long.comb[$L-1]; + +say "The {$L}st digit in the first term having at least $L digits '$long' is $char."; -- cgit From deaeddfba405826ffe42675a54b55f255bda338b Mon Sep 17 00:00:00 2001 From: Andrew Shitov Date: Mon, 31 Jan 2022 09:34:52 +0100 Subject: Update .gitignore --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index bba8860898..040286b6c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +.idea +.precomp/ +.DS_Store +.vstags +.vscode .*.swp *~ *.class -- cgit