Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
3c1c605d
Commit
3c1c605d
authored
Jan 30, 2014
by
Stephane Glondu
Browse files
Optimization
parent
bad50774
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/election_tool.ml
View file @
3c1c605d
...
...
@@ -33,12 +33,12 @@ let load_from_file of_string filename =
let
rec
loop
lines
=
match
(
try
Some
(
input_line
ic
)
with
End_of_file
->
None
)
with
|
Some
""
->
loop
lines
|
Some
line
->
loop
(
line
::
lines
)
|
Some
line
->
loop
(
of_string
line
::
lines
)
|
None
->
lines
in
loop
[]
in
close_in
ic
;
Some
(
List
.
rev
_map
of_string
lines
)
Some
(
List
.
rev
lines
)
)
else
None
let
read_number
=
Serializable_builtin_j
.
read_number
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment