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
b222b9ca
Commit
b222b9ca
authored
Mar 06, 2020
by
John van Groningen
Browse files
remove () around ~ in instance member definitions in StdIOBasic of ObjectIO
parent
01b9f463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Libraries/ObjectIO/ObjectIO/StdIOBasic.icl
View file @
b222b9ca
...
...
@@ -77,7 +77,7 @@ instance - Vector2 where
instance
zero
Vector2
where
zero
=
{
vx
=
0
,
vy
=
0
}
instance
~
Vector2
where
(~)
{
vx
,
vy
}
=
{
vx
=
0
-
vx
,
vy
=
0
-
vy
}
~
{
vx
,
vy
}
=
{
vx
=
0
-
vx
,
vy
=
0
-
vy
}
instance
toString
Vector2
where
toString
{
vx
,
vy
}
=
curlify
(
itemsList
","
(
map
recordFieldtoString
(
zip2
[
"vx"
,
"vy"
]
[
vx
,
vy
])))
...
...
@@ -92,7 +92,7 @@ instance - Point2 where
instance
zero
Point2
where
zero
=
{
x
=
0
,
y
=
0
}
instance
~
Point2
where
(~)
{
x
,
y
}
=
{
x
=
0
-
x
,
y
=
0
-
y
}
~
{
x
,
y
}
=
{
x
=
0
-
x
,
y
=
0
-
y
}
instance
toVector
Point2
where
toVector
{
x
,
y
}
=
{
vx
=
x
,
vy
=
y
}
...
...
Write
Preview
Markdown
is supported
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