UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
Mapper
/
getPairFromOne.ts
4 lines
(2 loc)
•
188 B
text/typescript
View Raw
1
2
3
4
import
{
Mapper
}
from
'./index'
export
const
getPairFromOne = <
In
,
Out1
,
Out2
>
(
get1: Mapper<In, Out1>, get2: Mapper<In, Out2>
) =>
(
input
:
In
): [
Out1
,
Out2
] => [
get1
(input),
get2
(input)]