Skip to content

Instantly share code, notes, and snippets.

View tiriana's full-sized avatar
🤨
¯\_(ツ)_/¯

Radomir Wojtera tiriana

🤨
¯\_(ツ)_/¯
View GitHub Profile
@staltz
staltz / introrx.md
Last active May 9, 2024 07:59
The introduction to Reactive Programming you've been missing
@beoliver
beoliver / booleans.js
Last active December 28, 2022 20:18
javascript boolean matches (and / nand / or / nor / xor / iff / all / any / none )
// a better name would be - if predicate is True then success, else not success.
// using basic logic we can now create logic functions that compute only as much as required
// anyBool :: (a -> Bool) -> Bool -> [a] -> Bool
function anyBool(pred,success,xs) {
for (var i = 0; i < xs.length; i++) {
if (pred(xs[i]) === success) {
return success }}
return !success }