naming convention enforced
This commit is contained in:
parent
4bac995a5a
commit
f7c5c97a3b
|
@ -1,4 +1,4 @@
|
|||
#+Title:On Scrumm
|
||||
#+Title: On Scrumm
|
||||
|
||||
It is of good taste these day to critique Scrumm.
|
||||
Here are my 2cents
|
|
@ -1,5 +1,5 @@
|
|||
#+title: Solaryzed: A Generalisation of Solarized
|
||||
#+date: [2020-03-01 Sun]
|
||||
#+title: My story about colorscheme
|
||||
#+date: [2020-05-03 Sun]
|
||||
#+author: Yann Esposito
|
||||
#+EMAIL: yann@esposito.host
|
||||
#+KEYWORDS: colorscheme
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
#+TITLE: Haskell Design Pattern in Clojure
|
||||
#+SUBTITLE: Some classical haskell tricks equivalent in Clojure
|
||||
#+AUTHOR: Yann Esposito
|
||||
#+EMAIL: yann@esposito.host
|
||||
#+DATE: [2019-11-07 Thu]
|
||||
#+KEYWORDS: programming
|
||||
#+DESCRIPTION: LISP to simulate Haskell
|
||||
#+OPTIONS: auto-id:t
|
||||
|
||||
#+begin_notes
|
||||
TL;DR: Some clever Haskell trick can in fact be simulated quite efficiently
|
||||
with Clojure.
|
||||
#+end_notes
|
||||
|
||||
* Monads
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: monads
|
||||
:END:
|
||||
|
||||
#+begin_src haskell
|
||||
fullName :: Maybe Text -> Maybe Text -> Maybe Text
|
||||
fullName firstName lastName = do
|
||||
x <- firstName
|
||||
y <- lastName
|
||||
result <- return (x <> y)
|
||||
|
||||
ask :: IO (Maybe Text)
|
||||
ask = do
|
||||
l <- readLine
|
||||
return $ if null l then Nothing else Just l
|
||||
|
||||
askName <- fullName <$> ask "What is your first name?"
|
||||
<*> ask "What is your last name?"
|
||||
#+end_src
|
Loading…
Reference in New Issue