Ona 3 numara vermek ve o hilal onları sipariş gerekir bir programMerhaba im programlama haskell, bana hata veren ghg.hs: 45: 1: ayrıştırma hatası muhtemelen yanlış girinti veya uyumsuz parantez
ordertriple :: (Integer, Integer, Integer) -> (Integer, Integer, Integer)
ordertriple (x, y, z)
| x < y && x < z && y < z = (three x, three y, three z)
| x < y && x < z && z < y = (three x, three z, three y)
| y < x && y < z && x < z = (three y, three x, three z)
| y < x && y < z && z < x = (three y, three z, three x)
| z < x && z < y && y < x = (three z, three x, three y)
| otherwise = (three z, three y, three x)
yaptım ve hala yazım hatası bir kez bana ayrıştırma hatası xD @Carsten – Alex96
vererek hala çalışmıyor 'orderTriple' (ben bir şekilde orada var) bu kopyalanır ve ben buradan Haskell'e (ve bazı 'üç' - benim durumumda üç = id ') kullanın - en yakın tahmin: başka bir sorun var demektir. * kodu biz – Carsten
btw görmüyoruz: * work * derler demek ... Herhangi bir zımni mantığı test etmedim – Carsten