You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dean177 opened this issue
Jun 18, 2020
· 0 comments
Labels
good first issueGood for newcomershelp wantedExtra attention is neededin-dark-repoThere's an implementation which can be copied from https://github.com/darklang/dark
(* Partition into two lists, of potentially different type, using function
* `f`. Returns value in the first list for `Left` and second list for
* `Right`. *)
let partitionMap (items : 'c list) ~(f : 'c -> ('a, 'b) Either.t): ('a list * 'b list) =
TableclothList.foldRight
~initial:([], [])
~f:(fun (lefts, rights) item ->
match f item with
| Left a ->
(a :: lefts, rights)
| Right b ->
(lefts, b :: rights))
items
The text was updated successfully, but these errors were encountered:
good first issueGood for newcomershelp wantedExtra attention is neededin-dark-repoThere's an implementation which can be copied from https://github.com/darklang/dark
The text was updated successfully, but these errors were encountered: