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-compiler-and-rts
compiler
Commits
9a007500
Commit
9a007500
authored
Jan 12, 2000
by
Pieter Koopman
Browse files
function isNotEmpty added
parent
e864f4db
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/utilities.dcl
View file @
9a007500
...
...
@@ -21,6 +21,8 @@ isSpecialChar :: ! Char -> Bool
For Lists
*/
isNotEmpty
::
![
a
]
->
Bool
mapSt
::
!(.
a
->
(.
st
->
(.
c
,.
st
)))
![.
a
]
!.
st
->
(![.
c
],!.
st
)
app2St
::
!(!.(.
a
->
.(.
st
->
(.
c
,.
st
))),!.(.
e
->
.(.
st
->
(.
f
,.
st
))))
!(.
a
,.
e
)
!.
st
->
(!(.
c
,.
f
),!.
st
)
...
...
frontend/utilities.icl
View file @
9a007500
...
...
@@ -74,6 +74,10 @@ isSpecialChar ':' = True
isSpecialChar
'.'
=
True
isSpecialChar
c
=
False
isNotEmpty
::
![
a
]
->
Bool
isNotEmpty
[]
=
False
isNotEmpty
_
=
True
strictMap
::
!(.
a
->
.
b
)
![.
a
]
->
[.
b
]
strictMap
f
[
x
:
xs
]
#!
head
=
f
x
...
...
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