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

5
LINES

< > BotCompany Repo | #1026662 // ai_iterator_starPatternFromLastWords

JavaX fragment (include)

static ItIt<S> ai_iterator_starPatternFromLastWords(S s) {
  LS tok = nlTok6(s);
  ret mapI(countIterator_exclusive(1, countTokens(tok)), n ->
    "* " + takeLastTokens(n, tok));
}

Author comment

Began life as a copy of #1026652

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: #1026662
Snippet name: ai_iterator_starPatternFromLastWords
Eternal ID of this version: #1026662/1
Text MD5: 0166d5d93e0dc4d949eee49f50f8c771
Author: stefan
Category: javax / electric logic engine
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-18 18:02:53
Source code size: 184 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 101 / 130
Referenced in: [show references]