다음을 통해 공유


Function.From

구문

Function.From(functionType as type, function as function) as function

정보

단항 함수 function 를 사용하여 인수에서 목록을 생성하고 전달하는 형식 functionType 을 사용하여 새 함수를 function만듭니다.

예 1

List.Sum을 인수가 함께 추가된 두 인수 함수로 변환합니다.

사용법

Function.From(type function (a as number, b as number) as number, List.Sum)(2, 1)

출력

3

예제 2

목록을 가져오는 함수를 두 인수 함수로 변환합니다.

사용법

Function.From(type function (a as text, b as text) as text, (list) => list{0} & list{1})("2", "1")

출력

"21"