Avatar
omochimetaru 5/29/2017 9:28 AM
Many programming languages have some sort of Apply function, a language construct that applies a function to a list of arguments. Apply is ubiquitous in functionally-leaning languages, but it is ...
9:28 AM
func apply<T, U>(fn: (T...) -> U, args: [T]) -> U { typealias FunctionType = [T] -> U return unsafeBitCast(fn, FunctionType.self)(args) }
9:28 AM
怪しい・・・