Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
sasa
Commits
463e719e
Commit
463e719e
authored
1 year ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
test: use State.t instead of 'st intest/skeleton/ to ease the life of Ocaml beginners
parent
2fc9023a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/skeleton/p.ml
+4
-4
4 additions, 4 deletions
test/skeleton/p.ml
with
4 additions
and
4 deletions
test/skeleton/p.ml
+
4
−
4
View file @
463e719e
(* Time-stamp: <modified the
16
/0
1
/2023 (at
21:58
) by Erwan Jahier> *)
(* Time-stamp: <modified the
29
/0
6
/2023 (at
16:04
) by Erwan Jahier> *)
(* a dumb algo that compiles *)
open
Algo
let
(
init_state
:
int
->
string
->
'
s
t
)
=
let
(
init_state
:
int
->
string
->
State
.
t
)
=
fun
_nl
_
->
(
Random
.
int
10
)
let
(
enable_f
:
'
st
->
'
s
t
neighbor
list
->
action
list
)
=
let
(
enable_f
:
State
.
t
->
State
.
t
neighbor
list
->
action
list
)
=
fun
_
nl
->
match
state
(
List
.
hd
nl
)
with
|
0
->
[
"action2"
]
...
...
@@ -16,7 +16,7 @@ let (enable_f: 'st -> 'st neighbor list -> action list) =
|
_
->
[
"action1"
]
let
(
step_f
:
'
st
->
'
s
t
neighbor
list
->
action
->
'
s
t
)
=
let
(
step_f
:
State
.
t
->
State
.
t
neighbor
list
->
action
->
State
.
t
)
=
fun
e
_
->
function
|
"action1"
->
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment