One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
benchmarking 5 elements/sumOfTwo | |
time 13.12 ns (12.95 ns .. 13.32 ns) | |
0.999 R² (0.998 R² .. 0.999 R²) | |
mean 13.12 ns (12.95 ns .. 13.31 ns) | |
std dev 573.7 ps (433.1 ps .. 769.1 ps) |
import System.Environment (getArgs) | |
doStuffToFile :: String -> IO () | |
doStuffToFile str = print $ length str | |
-- alt1: "stack build" så "stack exec <projectname>-exe path-to-file-if-not-in-folder/bible.txt" | |
main :: IO () | |
main = do | |
args <- getArgs | |
case args of |
import System.IO | |
import Control.Applicative (liftA) | |
import Data.Foldable (for_) | |
import Control.DeepSeq (($!!)) | |
writeFileWithEncoding :: FilePath -> String -> IO () | |
writeFileWithEncoding fp content = | |
withFile fp WriteMode $ \h -> | |
hSetEncoding h utf8 >> | |
hPutStr h content |
package calendarview; | |
import java.time.DayOfWeek; | |
import java.time.Duration; | |
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.LocalTime; | |
import java.time.format.DateTimeFormatter; | |
import java.util.ArrayList; | |
import java.util.List; |