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

5
LINES

< > BotCompany Repo | #1028253 // LineComped - result of LineComp compression

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

Libraryless. Click here for Pure Java version (2584L/17K).

// A = type of literals (e.g. String)
// B = ID for files (e.g. String)
static noeq record LineComped<A, B>(L<A> literals, L<IntPair> pairs, Map<B, L<Int>> files) {
  long roughCount() { ret l(literals) + l(pairs)*2 + totalLength(values(files)); }
}

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: #1028253
Snippet name: LineComped - result of LineComp compression
Eternal ID of this version: #1028253/4
Text MD5: b75c11a1b7cfa74a25f5a408e25151a3
Transpilation MD5: 28978dbec1cb079d45be1f4f523dc085
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-29 12:28:11
Source code size: 253 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 237 / 555
Version history: 3 change(s)
Referenced in: #1028479 - LineCompedSingle - result of LineComp compression for a single "file"
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)