June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -2,11 +2,11 @@ module StrSet = Set.Make(String)
|
|||
|
||||
let str_rev s =
|
||||
let len = String.length s in
|
||||
let r = String.create len in
|
||||
let r = Bytes.create len in
|
||||
for i = 0 to len - 1 do
|
||||
r.[i] <- s.[len - 1 - i]
|
||||
Bytes.set r i s.[len - 1 - i]
|
||||
done;
|
||||
(r)
|
||||
Bytes.to_string r
|
||||
|
||||
let input_line_opt ic =
|
||||
try Some (input_line ic)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue