type-signature
Using Haskell's "Maybe", type declarations [beginner's question]
I\'ve started experimenting with Haskell and have a problem. qqq is a function that should print one string if called with \"Nothing\" and print other things if called with \"Just something\".[详细]
2023-03-20 14:01 分类:问答Type signature types for lists, etc
How would you define the following type signatures in plain english: Ord a => ... Eq a => ... Num a => ...[详细]
2023-03-13 13:14 分类:问答`Ord a =>` or `Num a =>`
I have the following functions: which (x:xs) = worker x xs worker x [] = x worker x (y:ys) x > y= worker y ys[详细]
2023-03-12 13:56 分类:问答haskell type signature question
Can someone explain me, why do these functions have different number of arguments and behavior, but the same type signature, yet they are both correct?[详细]
2023-01-26 18:49 分类:问答How do I read this OCaml type signature?
I\'m currently experimenting with using OCaml and GTK together (using the lablgtk bindings).However, the documentation isn\'t the best, and while I can work out how to use most of the features, I\'m s[详细]
2023-01-07 05:54 分类:问答金条一克多少钱啊??
别理我行吗123 开发者_JAVA技巧2022-05-18 05:26 今天去金店逛看到金价在373一克。半年涨了70多块,涨幅超过20%。[详细]
2022-12-20 12:47 分类:问答