1 | static int parseQuality(Lisp l) { |
2 | if (l.isLeaf()) |
3 | ret isInteger(l.head) || possibleGlobalID(l.head) ? 0 : -1; |
4 | int n = 0; |
5 | for (Lisp x : l) |
6 | n += parseQuality(x); |
7 | ret n; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008338 |
Snippet name: | parseQuality - ratio of concept IDs to other words |
Eternal ID of this version: | #1008338/1 |
Text MD5: | 0da6e83d3fa932e84653df6abcf32751 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-08 01:06:37 |
Source code size: | 191 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 448 / 482 |
Referenced in: | [show references] |