Navigation :
AP CS
-
Haskell
--
1. Intro
--
2. Starting Out
--
3. Types and Typeclasses
--
4. Syntax in Functions
--
5. Recursion
--
6. Higher Order Functions
--
7. Modules
--
USACO Practice
--
Haskell Daily Notes
--- 2018-10-16
--- 2018-10-09 Project
--- 2018.10.04 Square Pasture
--- 2018.10.03 Cow Signal
--- 2017-10-04
--- 2017-10-03
--- 2017-09-18
--- 2017-09-14 Indentation
--- 2017-09-12
--- 2017-09-11
--
Scrabble
--
Connect Four
-- Typeclass Notes
-- Repl.it
-- Source Code Files (ghci)
-
Java Essentials
-
Problem Solving
-
AP Review
-
Preparation
Artificial Intelligence
Intermediate CS
Robotics
WY Robotics
Exploring CS (Teachers)
Resources
2018.10.03 Cow Signal
We worked on the Cow
Signal
problem.
To make your writing simpler, you should use the signature below. The
very last step of printing out everything on its own line is not an
important part of the problem.
cowSignal :: Int -> [ String ] -> [ String ]
Printing on multiple lines: use \n
like this:
x = "This \n string \n prints \n on \n many \n lines"
main = do putStrLn x
Solution discussed period 2.