caesar cipher check in ocaml
问题 I want to implement a check function that given two strings s1 and s2 will check if s2 is the caesar cipher of s1 or not. the inter face needs to be looked like string->string->bool . the problem is that I am not allowed to use any string functions other than String.length , so how can I solve it? i am not permitted any list array , iterations . Only recursions and pattern matching . Please help me. And also can you tell me how I can write a substring function in ocaml other than the module