RosettaCodeData/Task/Test-integerness/Jq/test-integerness-2.jq

5 lines
176 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(
0, -1, [3,0], {"p": 4, "q": 2, "type": "rational"},
1.1, -1.1, [3,1], {"p": 5, "q": 2, "type": "rational"}
) | "\(.) => \(if is_integral then "integral" else "" end)"