...
Advent of Code 2017
Github is free, you don't have to pay a monthly fee.
You have to pay a monthly fee for private repos.
bitbucket changed their icon to a rainbow one (only visible when logged in, oddly) to celebrate some fag shit. It isn't free if you get AIDS, user.
Yeah but otherwise it's free.
I hope this is more to your taste, user.let use_of_toilet s = let digits = match String.length s with n -> n in let digit = function | '0' -> 0 | '1' -> 1 | '2' -> 2 | '3' -> 3 | '4' -> 4 | '5' -> 5 | '6' -> 6 | '7' -> 7 | '8' -> 8 | '9' -> 9 | _ -> failwith "non-digit found in string" in let same n m = match s.[n] with | c when c = s.[m] -> digit s.[n] | _ -> 0 in let rec loop i acc = let next = match (i + digits / 2) mod digits with n -> n in match i with | 0 -> acc | n -> loop (i - 1) (same i next + acc) in loop (digits - 1) 0
...
i believe the word you're looking for is "parameter", pajeet
it annoys me that this piece of shit rewrite is actually better for not producing bullshit answers:utop # adv_faggotry "hi there";;- : int = 112utop # use_of_toilet "hi there";;Exception: (Failure "non-digit found in string").Raised at file "pervasives.ml", line 32, characters 22-33Called from file "puzzle.ml", line 44, characters 25-36Called from file "toplevel/toploop.ml", line 180, characters 17-56
Let's see your solution Pajeet. I'll even let you write it it Java. I'm excited to see how you'll utilize XML to configure your reusable components.