summaryrefslogtreecommitdiffhomepage
path: root/pl-pl/haskell-pl.html.markdown
diff options
context:
space:
mode:
authorRemigiusz Suwalski <remigiusz-suwalski@users.noreply.github.com>2017-01-10 10:10:04 +0100
committerRemigiusz Suwalski <remigiusz-suwalski@users.noreply.github.com>2017-01-10 10:10:04 +0100
commitfd89a692838344ab3776334984a7afced5defe93 (patch)
tree5fdfef91c3d6264d9af09ffade6ec883822a8b15 /pl-pl/haskell-pl.html.markdown
parentcc0bd98aeed7bb0b03b78422c63c382907eced77 (diff)
Translate type signatures
Diffstat (limited to 'pl-pl/haskell-pl.html.markdown')
-rw-r--r--pl-pl/haskell-pl.html.markdown16
1 files changed, 9 insertions, 7 deletions
diff --git a/pl-pl/haskell-pl.html.markdown b/pl-pl/haskell-pl.html.markdown
index ae44cd9a..a3c2d187 100644
--- a/pl-pl/haskell-pl.html.markdown
+++ b/pl-pl/haskell-pl.html.markdown
@@ -220,24 +220,26 @@ even . fib $ 7 -- false
----------------------------------------------------
--- 5. Type signatures
+-- 5. Sygnatury typów
----------------------------------------------------
--- Haskell has a very strong type system, and every valid expression has a type.
+-- Haskell posiada wyjątkowo silny system typów, w którym każde poprawne
+-- wyrażenie ma swój typ.
--- Some basic types:
+-- Kilka podstawowych typów:
5 :: Integer
"hello" :: String
True :: Bool
--- Functions have types too.
--- `not` takes a boolean and returns a boolean:
+-- Funkcje też są określonego typu.
+-- `not` przyjmuje wartość logiczną i taką też zwraca:
-- not :: Bool -> Bool
--- Here's a function that takes two arguments:
+-- Przykład funkcji przyjmującej dwa argumenty
-- add :: Integer -> Integer -> Integer
--- When you define a value, it's good practice to write its type above it:
+-- Dobrą praktyką podczas definiowania wartości jest napisanie nad nią
+-- także jej typu:
double :: Integer -> Integer
double x = x * 2