I hereby claim:
- I am varfrog on github.
- I am agrigutis (https://keybase.io/agrigutis) on keybase.
- I have a public key ASB0hIE-NYkotY_Pr5PaduyXmQC5bvTG_SRNXjDX3cn-JAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
$foo = '0'; | |
echo empty($foo) ? 1 : 0; | |
echo PHP_EOL; |
(defrecord BalanceSheet [liabilities equity]) | |
(defn calc-assets | |
[^BalanceSheet bs] | |
(+ (:liabilities bs) (:equity bs))) | |
(defn replace-vals-with-assets | |
"{:key1 BalanceSheet, ...} -> {:key1 (calc-assets BalanceSheet), ...}." | |
[sheets] | |
(reduce-kv (fn [m k v] |
<?php | |
class BalanceSheet | |
{ | |
public function __construct(public int $liabilities, public int $equity) | |
{ | |
} | |
} | |
class AssetsCalculator |
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
const ( | |
fileStateOpen int = iota + 1 | |
fileStateClosed |