akkuratenz
2018-1-8 22:35:50

@akkuratenz has joined the channel


pavpanchekha
2018-1-9 01:31:51

Is there any way to write a contract that matches any function returning a symbol, no matter how many arguments the function may or may not take?


pavpanchekha
2018-1-9 01:32:38

(->* () #:rest (listof any/c) symbol?) does not work, because it requires the function to accept any number of arguments, whereas I want to match functions like (lambda (x) 'ok)


pavpanchekha
2018-1-9 01:33:49

(For now, I can use procedure? but then I am omitting the function output check)



pavpanchekha
2018-1-9 01:38:46

Thanks!


jaz
2018-1-9 01:38:49

So, (unconstrained-domain-> symbol?)


pavpanchekha
2018-1-9 01:39:06

Is there any way to say, “I don’t care how many arguments there are, but all of them should be symbols?”


lexi.lambda
2018-1-9 01:42:16

I think you could do it with dynamic->* inside of ->i, but I don’t know how to do it otherwise.