mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 04:30:56 +01:00
11 lines
320 B
Plaintext
11 lines
320 B
Plaintext
|
|
/*
|
||
|
|
Simple filter hook function. Splits the argument by whitespace,
|
||
|
|
fetches the 2nd element, converts it to an int and returns true
|
||
|
|
if it s larger than 5, false otherwise.
|
||
|
|
*/
|
||
|
|
(defn uselarge [line]
|
||
|
|
(cond (> (atoi (second (resplit line `\s+`))) 5) true false))
|
||
|
|
|
||
|
|
/* Register the filter hook */
|
||
|
|
(addhook %filter %uselarge)
|