Difference between revisions of "Translations:FP Laboratory 5/11/cs"

From Marek Běhálek Wiki
Jump to navigation Jump to search
(Created page with "* Pro libovolný typ <code>a</code>, testovací funkci typu <code>a -> Bool</code> a seznamu prvků typu <code>a</code> by měla funkce vrátit dvojici seznamů. Prvním člen...")
 
(No difference)

Latest revision as of 06:48, 10 October 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (FP Laboratory 5)
* Given an arbitrary type a, a test predicate of type a → Bool and a list of elements of type a, the partition function should return a pair of lists. The first member of the pair is the sublist of the original list containing the elements that satisfy the test, and the second is the sublist containing those that fail the test.
Translation* Pro libovolný typ <code>a</code>, testovací funkci typu <code>a -> Bool</code> a seznamu prvků typu <code>a</code> by měla funkce vrátit dvojici seznamů. Prvním členem dvojice je podseznam původního seznamu obsahující prvky, které testu vyhovují testovací funkci, a druhým je podseznam obsahující prvky, které testu nevyhovují.
  • Pro libovolný typ a, testovací funkci typu a -> Bool a seznamu prvků typu a by měla funkce vrátit dvojici seznamů. Prvním členem dvojice je podseznam původního seznamu obsahující prvky, které testu vyhovují testovací funkci, a druhým je podseznam obsahující prvky, které testu nevyhovují.