1 | static int ai_goodBadToInt(S s) { |
2 | if (eq(s, 'good)) ret 1; |
3 | if (eq(s, 'bad)) ret -1; |
4 | ret 0; |
5 | } |
Began life as a copy of #1021469
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021473 |
Snippet name: | ai_goodBadToInt - -1, 0 or 1 |
Eternal ID of this version: | #1021473/2 |
Text MD5: | aa8a820500f58242c8c4e8d36affa92c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-14 14:03:02 |
Source code size: | 102 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 320 / 334 |
Version history: | 1 change(s) |
Referenced in: | [show references] |