Hao Deng
Hao Deng
A walk around is :Tab /|/l0l1 make the first column left 0, other left 1
> let (a, b) = (1, 2) in (a,b) > use let expression. > repl is not the same as in an elm file where (a,b) =(1,2) will delcare a...
Seriously, why Github try to implement babel, instead of just render the org file?
It's about using diff function. I have a piece of code that reading from a json using aeson and write it back to test. An optional field like a ::...
https://hackage.haskell.org/package/aeson-0.11.1.4/docs/Data-Aeson-TH.html I think what I need is something like omitNothingFields in above link.
Here is what I mean ``` import qualified Data.HashMap.Strict as H import qualified Data.Vector as V import Data.Aeson ((.:), (.:?), eitherDecode, FromJSON(..), Value(..), encode, toJSON) stripNull :: Value -> Value...
I'm not sure about ``` diff {"a":"hello", "b":"world"} {"a":null,"b":"world"} === [{"op":"remove", "path":"/a"}] diff {"a":null,"b":"world"} {"a":"hello","b":"world"} === [{"op":"add", "path":"/a", "value": "hello"}] ``` But I want `diff {"a":null, "b":"world"} {"b":"world"} === []...
actually, even `select cast(1 as int)` return float