implemented posSearchExact
This commit is contained in:
1 parent
25e4929f0b
commit
a2968595d8
2 files changed
+22
-1
No files matched your search
@@ -54,7 +54,12 @@ posSearchExact
|
||||
-- ^ The database
|
||||
-> Maybe Int
|
||||
-- ^ The index of the result (or 'Nothing' if not found)
|
||||
posSearchExact = undefined
|
||||
posSearchExact sStr db = case filter sFunc $ zip [0..] ps of
|
||||
[] -> Nothing
|
||||
(n,_):_ -> Just n
|
||||
where
|
||||
sFunc (_, pos) = sStr == pos
|
||||
ps = getPositions db
|
||||
|
||||
-- | Builds a callback function for when a 'Player' position is
|
||||
-- selected
|
||||
|
||||
Reference in new issue
Block a user