Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1026757 // ai_describeObject

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (2391L/15K).

sS ai_describeObject(O o, O... _) {
  if (o == null) ret "nothing";
  if (o instanceof S) ret "a string";
  if (o cast L) ret
    boolPar details(_) ? ai_describeList(o, _) : "a list";
  if (o instanceof Cl) ret "a collection";
  ret "an object of type " + dynShortName(o);
}

Author comment

Began life as a copy of #1026554

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026757
Snippet name: ai_describeObject
Eternal ID of this version: #1026757/4
Text MD5: 42a121db165fbf886adda8ea47315029
Transpilation MD5: 323650ae6cc4d8a597dd15c41bbf0a14
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-26 21:11:22
Source code size: 282 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 251 / 320
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1026759 - ai_describeString
#1026855 - ai_describeObjectWithDetails