Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-platform
Commits
19ff7be0
Verified
Commit
19ff7be0
authored
Apr 10, 2020
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove insertR from Data.Set, which is now identical to insert
parent
d2a09b20
Pipeline
#41193
passed with stage
in 1 minute and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/libraries/OS-Independent/Data/Set.icl
src/libraries/OS-Independent/Data/Set.icl
+2
-9
No files found.
src/libraries/OS-Independent/Data/Set.icl
View file @
19ff7be0
...
...
@@ -82,19 +82,12 @@ singleton x = Bin 1 x Tip Tip
*--------------------------------------------------------------------*/
insert
::
!
a
!.(
Set
a
)
->
Set
a
|
<
a
insert
x
t
=:(
Bin
sz
y
l
r
)
insert
x
t
=:(
Bin
_
y
l
r
)
|
x
<
y
=
balanceL
y
(
insert
x
l
)
r
|
x
>
y
=
balanceR
y
l
(
insert
x
r
)
|
otherwise
=
t
insert
x
_
=
singleton
x
insertR
::
!
a
!(
Set
a
)
->
Set
a
|
<
a
insertR
x
t
=:(
Bin
_
y
l
r
)
|
x
<
y
=
balanceL
y
(
insertR
x
l
)
r
|
x
>
y
=
balanceR
y
l
(
insertR
x
r
)
|
otherwise
=
t
insertR
x
_
=
singleton
x
delete
::
!
a
!.(
Set
a
)
->
Set
a
|
<
a
delete
x
(
Bin
_
y
l
r
)
|
x
<
y
=
balanceR
y
(
delete
x
l
)
r
...
...
@@ -143,7 +136,7 @@ deleteMax Tip = Tip
union
::
!
u
:(
Set
a
)
!
u
:(
Set
a
)
->
Set
a
|
<
a
union
t1
Tip
=
t1
union
t1
(
Bin
_
x
Tip
Tip
)
=
insert
R
x
t1
union
t1
(
Bin
_
x
Tip
Tip
)
=
insert
x
t1
union
(
Bin
_
x
Tip
Tip
)
t2
=
insert
x
t2
union
Tip
t2
=
t2
union
t1
=:(
Bin
_
x
l1
r1
)
t2
=
link
x
l1l2
r1r2
...
...
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