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

10
LINES

< > BotCompany Repo | #1032992 // mapChannels

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

Transpiled version (3897L) is out of date.

static <A> Channels<A> lambdaMapLike mapChannels(IF1<Int, A> f, int channels) {
  Channels<A> cc = new(channels);
  for c to channels:
    cc.set(c, f.get(c));
  ret cc;
}

static <A> Channels<A> lambdaMapLike mapChannels(int channels, IF1<Int, A> f) {
  ret mapChannels(f, channels);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032992
Snippet name: mapChannels
Eternal ID of this version: #1032992/3
Text MD5: 9a56a24e81a2bcd9c00d7be31cce1363
Author: stefan
Category: javax / audio analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 08:39:04
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 222
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033246 - repChannels - repeat value in all channels