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
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
10731f4e
Commit
10731f4e
authored
Oct 23, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '64-bug-in-function-maximum-in-module-data-list' into 'master'
Resolve "Bug in function maximum in module Data.List" Closes
#64
See merge request
!217
parents
aabd59db
baa362da
Pipeline
#15500
passed with stage
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/libraries/OS-Independent/Data/List.icl
src/libraries/OS-Independent/Data/List.icl
+1
-1
No files found.
src/libraries/OS-Independent/Data/List.icl
View file @
10731f4e
...
...
@@ -155,8 +155,8 @@ concatMap :: (.a -> [.b]) ![.a] -> [.b]
concatMap
f
ls
=
flatten
(
map
f
ls
)
maximum
::
!.[
a
]
->
a
|
<
a
maximum
[
x
:
xs
]
=
max
x
(
maximum
xs
)
maximum
[
x
]
=
x
maximum
[
x
:
xs
]
=
max
x
(
maximum
xs
)
maximum
[]
=
abort
"maximum of empty list
\n
"
minimum
::
!.[
a
]
->
a
|
Ord
a
...
...
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