Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
proygrado
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
MARTIN MENDEZ GONZALEZ
proygrado
Commits
fde34ca6
Commit
fde34ca6
authored
7 years ago
by
Marcos Viera
Browse files
Options
Downloads
Patches
Plain Diff
primero y resto en funs
parent
d5dff912
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
MateFun/src/MateFun/Core.hs
+6
-6
6 additions, 6 deletions
MateFun/src/MateFun/Core.hs
with
6 additions
and
6 deletions
MateFun/src/MateFun/Core.hs
+
6
−
6
View file @
fde34ca6
...
...
@@ -161,7 +161,7 @@ instance Show Ty where
show
(
TyComp
nm
_
_
)
=
nm
show
(
TyProd
ts
)
=
"("
++
intercalate
" X "
(
map
show
ts
)
++
")"
show
(
TySec
t
)
=
show
t
++
"*"
show
(
TyAny
)
=
"Cualquier Conjunto"
show
(
TyAny
)
=
"A"
--
"Cualquier Conjunto"
show
(
TyAnyEnum
)
=
"Cualquier Enumerado"
show
(
TyAnyProd
)
=
"Cualquier Tupla"
...
...
@@ -226,7 +226,7 @@ rotar (VProd [VFig f, VR g]) = VFig $ D.rotate f g
escalar
(
VProd
[
VFig
f
,
VR
e
])
=
VFig
$
D
.
scale
f
e
aFig
(
VFig
x
)
=
VFig
x
aFig
(
x
)
=
VFig
$
D
.
textAt
(
show
x
)
(
0
,
0
)
aFig
(
x
)
=
VFig
$
D
.
textAt
(
show
x
)
(
0
,
0
)
rango
(
VProd
[
VR
ini
,
VR
fin
,
VR
paso
])
=
VSec
(
map
vr
[
ini
,
ini
+
paso
..
fin
])
R
primero
(
VSec
xs
_
)
=
head
xs
...
...
@@ -245,10 +245,10 @@ stdFT = [("-", (TyR,TyR))
,(
"mover"
,
(
TyProd
[
TyFig
,
TyProd
[
TyR
,
TyR
]],
TyFig
))
,(
"rotar"
,
(
TyProd
[
TyFig
,
TyR
],
TyFig
))
,(
"escalar"
,
(
TyProd
[
TyFig
,
TyR
],
TyFig
))
,(
"aFig"
,
(
TyAny
Enum
,
TyFig
))
,(
"rango"
,
(
TyProd
[
TyR
,
TyR
,
TyR
],
TySec
TyR
))
]
--
,("primero", (
[
TySec TyAny
]
,TyAny))
--
,("resto",(
[
TySec TyAny
]
,TySec TyAny))]
,(
"aFig"
,
(
TyAny
,
TyFig
))
,(
"rango"
,
(
TyProd
[
TyR
,
TyR
,
TyR
],
TySec
TyR
))
--
]
,(
"primero"
,
(
TySec
TyAny
,
TyAny
))
,(
"resto"
,(
TySec
TyAny
,
TySec
TyAny
))]
stdF
=
[(
"-"
,
men
)
,(
"red"
,
red
)
...
...
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