Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clean-libraries
Commits
f5cc725f
Commit
f5cc725f
authored
Nov 23, 2006
by
John van Groningen
Browse files
export strictness of getConsPath
parent
e81429fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/StdEnv/StdGeneric.dcl
View file @
f5cc725f
...
...
@@ -53,7 +53,7 @@ bimapId :: Bimap .a .a
// determine the path in the generic binary-sum-tree of a constructor
::
ConsPos
=
ConsLeft
|
ConsRight
getConsPath
::
GenericConsDescriptor
->
[
ConsPos
]
getConsPath
::
!
GenericConsDescriptor
->
[
ConsPos
]
// generic bidirectional mapping
generic
bimap
a
b
::
Bimap
.
a
.
b
...
...
libraries/StdEnv/StdGeneric.icl
View file @
f5cc725f
...
...
@@ -56,7 +56,7 @@ where
,
map_from
=
x
.
map_from
o
map_from
o
y
.
map_to
}
getConsPath
::
GenericConsDescriptor
->
[
ConsPos
]
getConsPath
::
!
GenericConsDescriptor
->
[
ConsPos
]
getConsPath
{
gcd_index
,
gcd_type_def
={
gtd_num_conses
}}
=
doit
gcd_index
gtd_num_conses
where
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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