Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Logical-operations/Elm/logical-operations.elm
Normal file
16
Task/Logical-operations/Elm/logical-operations.elm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
--Open cmd and elm-repl and directly functions can be created
|
||||
|
||||
--Creating Functions
|
||||
t=True
|
||||
f=False
|
||||
opand a b= a && b
|
||||
opor a b= a || b
|
||||
opnot a= not a
|
||||
|
||||
--Using the created Functions
|
||||
opand t f
|
||||
opor t f
|
||||
opnot f
|
||||
|
||||
--Output will be False, True and True of type Boolean!
|
||||
--end
|
||||
Loading…
Add table
Add a link
Reference in a new issue