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

11
LINES

< > BotCompany Repo | #1011581 // ai_shortenForIndex

JavaX fragment (include)

static int ai_shortenForIndex_maxLength = 100;

static S ai_shortenForIndex(S text) {
  ret shorten(text, ai_shortenForIndex_maxLength);
}

ifclass Symbol
static Symbol ai_shortenForIndex(Symbol text) {
  ret shortenSymbol(text, ai_shortenForIndex_maxLength);
}
endif

Author comment

Began life as a copy of #1011366

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: #1011581
Snippet name: ai_shortenForIndex
Eternal ID of this version: #1011581/5
Text MD5: efa708318261e49d4bcdc17d5ffae1ce
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-10 07:12:11
Source code size: 277 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 468 / 475
Version history: 4 change(s)
Referenced in: [show references]