Hallo
Can somebody tell me the type of the following function?
func :: ?
func f x = (z,y)
where (z,y) = f x
Thanks
--
View this message in context:
http://www.nabble.com/Type-of-a-function--tf1945843.html#a5335607
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
_
Hello
Little Problem, hope that somebody can help me
I have a list
>main [(1,2,3),(4,5,6),(3,4,5)]
and i want all Elements at the 1. Pos. in new List:
>[1,4,3]
Thanks for help
--
View this message in context:
http://www.nabble.com/Simple-List-Question-tf1880239.html#a5139831
Sent from the
Hello,
Can somebody help me
My Problem is to define a code for:
>cross 7 -- means 7*7
>+++
>++ ++
>+ + + +
>+++
>+ + + +
>++ ++
>+++
Another Example
>cross 13 -- 13*13
>+
>++ ++
>+ +
Hello,
Know Somebody the code for symmetric difference (Sets)
examples
>symmetric_difference [1..8][5..7]
>[1,2,3,4,8]
>symmetric_ difference [1..8][]
>[1,2,3,4,5,6,7,8]
>symmetric_ difference [1..12][10..20]
>[1,2,3,4,5,6,7,8,9,13,14,15,16,17,18,19,20]
Thanks for Help
--
View this messa
Hello,
Can somebody help me
I want to work with putStrLn
main n = putStrLn "*"
for example
How must I define the code that:
>main 5
>*
Thanks for any help
--
View this message in context:
http://www.nabble.com/putStrLn-t1799896.html#a4905456
Sent from the Haskell - Haskell-Cafe forum at
Hallo
I search a code for
>elements_in_List([1,2],[1,2]).
>True
>elements_in_List([1,8],[1,2,3,4,8]).
>True
>elements_in_List([2,1],[1,2]).
>True
>elements_in_List([1,1],[1]).
>False
I have a code
elements_in_List :: Eq a => [a] -> [a] -> Bool
elements_in_List [] _ = True
elements_in_List _
hello,
I can not find the problem, I use WinHugs and shows me(Syntax error in input
(unexpected keyword "where").
here is my code:
f :: (Float,Float) -> Float
f (x,y) = (a(x,y) + 4) * (b(x,y) + 3)
where
a :: (Float,Float) -> Float
a(x,y) = (x + y)*2
b :: (Float,Float) -> Float
b(x,y) = (y - x)*5
hello,
i want to change my input integers
In> 23 98
Out> 98 23
I think its simple... sorry my first steps in Haskell
thanks for solutions.
--
View this message in context:
http://www.nabble.com/changing+out-t1707014.html#a4634189
Sent from the Haskell - Haskell-Cafe forum at Nabble.co
hello,
i want swap a pair of integers
for example
Main> 17
out> 71
Can somebody help me?
--
View this message in context:
http://www.nabble.com/swap+a+pair+of+integers-t1700880.html#a4615989
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
___