Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cool
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hans-Peter Deifel
cool
Commits
fb697230
Commit
fb697230
authored
11 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Add TArray.to_string helper
parent
a817ee25
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CoAlgLogicUtils.ml
+1
-0
1 addition, 0 deletions
CoAlgLogicUtils.ml
CoAlgLogicUtils.mli
+1
-0
1 addition, 0 deletions
CoAlgLogicUtils.mli
with
2 additions
and
0 deletions
CoAlgLogicUtils.ml
+
1
−
0
View file @
fb697230
...
...
@@ -15,6 +15,7 @@ module TArray = struct
let
elem
(
x
:
'
a
)
(
arr
:
'
a
array
)
=
any
(
fun
y
->
x
==
y
)
arr
let
included
sub
sup
=
all
(
fun
x
->
elem
x
sup
)
sub
let
to_string
ts
arr
=
"[| "
^
(
Array
.
fold_right
(
fun
i
str
->
(
ts
i
)
^
" "
^
str
)
arr
"|]"
)
end
let
disjointAgents
sort
a
b
=
...
...
This diff is collapsed.
Click to expand it.
CoAlgLogicUtils.mli
+
1
−
0
View file @
fb697230
...
...
@@ -11,6 +11,7 @@ module TArray : sig
val
any
:
(
'
a
->
bool
)
->
'
a
array
->
bool
val
elem
:
'
a
->
'
a
array
->
bool
val
included
:
'
a
array
->
'
a
array
->
bool
val
to_string
:
(
'
a
->
string
)
->
'
a
array
->
string
end
val
disjointAgents
:
sort
->
localFormula
->
localFormula
->
bool
...
...
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