Pass take&drop as parameters to the foreign function interface