kopia lustrzana https://github.com/backface/turtlestitch
Still translating section I.D
rodzic
aa5dcf3e1d
commit
be9c890284
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 2.3 KiB |
|
@ -203,6 +203,10 @@ This aid to readability is called \emph{zebra coloring}.) A reporter block with
|
|||
|
||||
Most reporters report either a number, like \inlinereporterpic{plus}, or a text string, like \inlinereporterpic{join-hello-world}. A \emph{predicate} is a special kind of reporter that always reports \code{true} or \code{false}. Predicates have a hexagonal shape:
|
||||
|
||||
\bigpic{mouse-down}
|
||||
|
||||
The special shape is a reminder that predicates don't generally make sense in an input slot of blocks that are expecting a number or text. You wouldn't say , although (as you can see from the picture) \Snap{} lets you do it if you really want. Instead, you normally use predicates in special hexagonal input slots like this one:
|
||||
|
||||
\section{Variables}
|
||||
\subsection{Global Variables}
|
||||
\subsection{Script Variables}
|
||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 2.7 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 3.2 KiB |
|
@ -208,7 +208,9 @@ Takie \emph{kolorowanie w~zebrę} poprawia czytelność programu. Blok funkcji w
|
|||
|
||||
\section{Predykaty i obliczenia warunkowe}
|
||||
|
||||
Większość funkcji zwraca albo liczbę, jak \inlinereporterpic{plus}, lub łańcuch tekstowy, jak \inlinereporterpic{polacz-witaj-swiecie}. \emph{Predykat} to specjalny rodzaj funkcji, która zawsze zwraca jedną z dwojga wartości \code{prawdę} lub \code{fałsz}. Predykaty mają kształt sześciokątów:
|
||||
|
||||
\bigpic{przycisk-myszy-nacisniety}
|
||||
|
||||
\section{Variables}
|
||||
\subsection{Global Variables}
|
||||
|
|
Ładowanie…
Reference in New Issue