Haskell: Function to determine the arity of functions?

后端 未结 6 711
一个人的身影
一个人的身影 2021-02-05 07:00

Is it possible to write a function arity :: a -> Integer to determine the arity of arbitrary functions, such that

> arity map
2
> arity fol         


        
6条回答
提交回复
热议问题