- Court sprints can be practiced in any vacant area with a hard surface
- Ensure that there is sufficient grip on the surface
- Wear court shoes with correct spacing in the toe box
- Using markers, place a triangle on the ground with dimensions 5.6mx2.8mx2.8m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Functor not Applicative | |
data FromIntOrBool a = | |
FromInt (Int -> a) | |
| FromBool (Bool -> a) | |
-- Applicative not Monad | |
data ZeroOrTwo a = | |
Zero | |
| Two a a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data List a = Nil | Cons a (List a) deriving Show | |
mapList :: (a -> b) -> List a -> List b | |
mapList = | |
-- delete the line below and complete the answer | |
error "todo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, Run $ Battery [ | |
"-t", "<acstatus>: <left>% (<fc=#ffcccc><timeleft></fc>)", | |
"--", | |
"-O", "AC", | |
"-o", "Bat", | |
"-h", "green", | |
"-l", "red", | |
"-a", "notify-send -u critical '!BATTERY!'" | |
] 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Store r t = Store r (r -> t) | |
instance Functor (Store r) where | |
class Functor f => Comonad f where | |
copoint :: f a -> a | |
duplicate :: f a -> f (f a) | |
instance Comonad (Store r) where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE KindSignatures #-} | |
-- trait Identity[A] { def run: A } | |
import Data.Functor.Identity | |
data Person = | |
Person | |
Int -- age | |
String -- name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE LambdaCase #-} | |
import Control.Lens | |
import Data.Bool | |
import Data.Maybe | |
-- Control.Lens.Iso#anon | |
anon' :: | |
a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Lens | |
-- fold that targets: | |
-- ("def", "text") | |
-- when | |
-- * the _1 side of the tuple == "a" | |
-- * the _2 side of the tuple has a 1-element list | |
-- * the _2 side of the pair has an element (which is a pair) with the fst side == "abc" | |
-- * the _3 side of the tuple has either a 1-element or 2-element list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foldRight' :: | |
(b -> z -> z) | |
-> (a -> b) | |
-> z | |
-> [a] | |
-> z | |
foldRight' _ _ z [] = | |
z | |
foldRight' k f z (x:xs) = | |
k (f x) (foldRight' k f z xs) |