src/parsers.js
function basicParser(condition, str) {
    let result = [];

    for (let i = 0; i < str.length; ++i) {
        if (condition(str[i])) {
            result.push(str[i]);
        }
    }

    return result;
}
function basicParser(condition, str) {
    let result = [];

    for (let i = 0; i < str.length; ++i) {
        if (condition(str[i])) {
            result.push(str[i]);
        }
    }

    return result;
}
function basicParser ( condition , str ) { let result = [ ] ; for ( let i = 0 ; i < str . length ; ++ i ) { if ( condition ( str [ i ] ) ) { result . push ( str [ i ] ) ; } } return result ; }
returns an array of all characters in a string that fulfill a condition
returns an array of all characters in a string that fulfill a condition