Merge with cfg
This commit is contained in:
@ -15,13 +15,13 @@ let rec powmod a d = function
|
||||
let alphabet = "abcdefghijklmnopqrstuvwxyz"
|
||||
let base = 26
|
||||
|
||||
let rec fromIntToString (x: int) : string =
|
||||
let rec from_int_to_string (x: int) : string =
|
||||
if x < 0 then
|
||||
""
|
||||
else if x < base then
|
||||
String.get alphabet x |> String.make 1
|
||||
else
|
||||
(fromIntToString (x/base - 1)) ^ (String.get alphabet (x mod base) |> String.make 1)
|
||||
(from_int_to_string (x/base - 1)) ^ (String.get alphabet (x mod base) |> String.make 1)
|
||||
|
||||
let int_and a b =
|
||||
match (a>0, b>0) with
|
||||
@ -169,4 +169,3 @@ let rec combine_twice la lb =
|
||||
| [a], [b] -> [a, b]
|
||||
| a::la, b::lb -> (a, b) :: (combine_twice la lb)
|
||||
| _ -> []
|
||||
>>>>>>> cfg
|
||||
|
||||
Reference in New Issue
Block a user