Files
rust-mal/tests/fil.mal
teo3300 1af7d68261 feat(types.rs): Implemented fractional numbers
Fracional numbers as extension of integernumbers, with Euclid's algorithm for fractional simplification, added functions "floor" "num" "den", added syntax [+/-]<num>/<den> to define fractional numbers

BREAKING CHANGE:
2025-07-22 11:49:19 +09:00

5 lines
214 B
Plaintext

; filter with builtin function
(assert-eq (list '(1) '(2) '(3)) (filter car (list '(1) '() '(2) '() '(3))))
; filter with lambda function
(assert-eq (list 1 2 3) (filter num? (list 1 "string" 2 'symbol 3 :label)))