: exclusions ( -- set )
exclusions-file utf8 file-lines
[ "#" split1 drop [ ascii:blank? ] trim-tail hex> ] map
- [ 0 = ] reject ;
+ 0 swap remove ;
: unique ( seq -- assoc )
[ dup ] H{ } map>assoc ;
[ CHAR: - 8 ] dip insert-nth ;
: string>uuid ( string -- n )
- [ CHAR: - = ] reject hex> ;
+ CHAR: - swap remove hex> ;
PRIVATE>
[ ] [ "<?xml version='1.0'?><!-- declarations for <head> & <body> --><foo/>" string>xml drop ] unit-test
: first-thing ( seq -- elt )
- [ "" = ] reject first ;
+ "" swap remove first ;
[ T{ element-decl f "br" "EMPTY" } ] [ "<!ELEMENT br EMPTY>" string>dtd directives>> first-thing ] unit-test
[ T{ element-decl f "p" "(#PCDATA|emph)*" } ] [ "<!ELEMENT p (#PCDATA|emph)*>" string>dtd directives>> first-thing ] unit-test
: ?filter-children ( children -- no-whitespace )
xml-pprint? get [
[ dup string? [ [ blank? ] trim ] when ] map
- [ "" = ] reject
+ "" swap remove
] when ;
PRIVATE>
[ symtab_command? ] filter ; inline
: read-array-string ( uchar-array -- string )
- ascii decode [ 0 = ] reject ;
+ ascii decode 0 swap remove ;
: segment-sections ( segment-command -- sections )
{
[ number>string ] dip [ CHAR: 0 pad-head ] keep tail* ;
: totp ( key -- string )
- dup string? [ [ CHAR: space = ] reject >upper base32> ] when
+ dup string? [ CHAR: space swap remove >upper base32> ] when
now timestamp>count swap totp-hash get totp* totp-digits get digits ;