Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
d655af52
Commit
d655af52
authored
Apr 25, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC + function composition.
parent
e5c82dc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Prelude.hs
src/Gargantext/Prelude.hs
+11
-3
No files found.
src/Gargantext/Prelude.hs
View file @
d655af52
...
...
@@ -243,16 +243,24 @@ unMaybe = map fromJust . L.filter isJust
-- on context of the algorithm itself and we need some clarity since
-- both are possible, here is a proposition to get more explicitiness.
-- | (~>) is called : "rightLeft" as "from right to left". The most right
-- | (~>) is called : "
Pipe
rightLeft" as "from right to left". The most right
-- function sends its output to the most left function which takes it as
-- input.
(
<|
)
::
(
a
->
b
)
->
a
->
b
(
<|
)
=
(
$
)
-- | (<~) is called : "leftRight" as "from left to right". The most left
-- | (<~) is called : "
Pipe
leftRight" as "from left to right". The most left
-- function sends its output to the most right function which takes it as
-- input.
-- input.
(|>) == (&) = True -- in base prelude
(
|>
)
::
a
->
(
a
->
c
)
->
c
(
|>
)
=
flip
(
$
)
-- | Function composition orientation
(
<.
)
::
(
a
->
b
)
->
(
b
->
c
)
->
a
->
c
(
<.
)
=
(
.
)
-- | Function composition orientation
(
.>
)
::
(
b
->
c
)
->
(
a
->
b
)
->
a
->
c
(
.>
)
=
flip
(
.
)
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