UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
Call
/
CallStr
/
index.ts
8 lines
(4 loc)
•
270 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
Call
}
from
'../index'
export
type
CallStr
=
Call
<
string
,
string
[]>
export
const
String$CallStr
= (
{ fun, args }:
CallStr
) =>
String
$CallStr$spread(fun, args)
export
const
String$CallStr$spread
= (
fun
:
string
,
args
:
string
[]
) =>
`
${fun}
(
${args.join(
', '
)}
)`