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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Julien Moutinho
haskell-gargantext
Commits
4b81f9d1
Unverified
Commit
4b81f9d1
authored
May 30, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small change in createIndexes
parent
9a6c8946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Index.hs
src/Gargantext/Viz/Graph/Index.hs
+3
-2
No files found.
src/Gargantext/Viz/Graph/Index.hs
View file @
4b81f9d1
...
@@ -112,7 +112,8 @@ createIndexes = set2indexes . cooc2set
...
@@ -112,7 +112,8 @@ createIndexes = set2indexes . cooc2set
set2indexes
::
Ord
t
=>
Set
t
->
(
Map
t
Index
,
Map
Index
t
)
set2indexes
::
Ord
t
=>
Set
t
->
(
Map
t
Index
,
Map
Index
t
)
set2indexes
s
=
(
M
.
fromList
toIndex'
,
M
.
fromList
fromIndex'
)
set2indexes
s
=
(
M
.
fromList
toIndex'
,
M
.
fromList
fromIndex'
)
where
where
fromIndex'
=
zip
[
1
..
]
(
S
.
toList
s
)
fromIndex'
=
zip
[
0
..
]
xs
toIndex'
=
zip
(
S
.
toList
s
)
[
1
..
]
toIndex'
=
zip
xs
[
0
..
]
xs
=
S
.
toList
s
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