search for: curried

Displaying 20 results from an estimated 172 matches for "curried".

Did you mean: carried
2007 Nov 01
3
Curry: proposed new functional programming, er, function.
Hi all (especially R-core) I suppose, With the introduction of the new functional programming functions into base I thought I'd ask for a Curry() function. I use a simple one that looks this: Curry = function(FUN,...) { .orig = list(...);function(...) do.call(FUN,c(.orig,list(...))) } This comes in really handy when using say, heatmap():
2011 Mar 21
1
Curry with `[.function` ?
Dear all, I sometimes use the following function: Curry <- function(FUN,...) { # by Byron Ellis, https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html .orig <- list(...) function(...) do.call(FUN,c(.orig,list(...))) } ... and have thought it might be convenient to have a method for [ doing this. As a simple example, > apply(M, 1, mean[trim=0.1]) # hypothetical
2002 Jul 16
3
Solaris privsep and compression.
Has anybody got privsep and compression working together on Solaris 2.6 and 2.5.1? I have no problem getting it working under Solaris 8, but on 2.5.1/2.6 it says: # ./sshd -p 6666 This platform does not support both privilege separation and compression Compression disabled -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Currie | |
2011 Nov 16
2
Any android source client for icecast ?
Try "XIIALive Lite", it works perfectly for my Icecast/Vorbis stream. The 'lite' version is free and works fine (ad supported). *xiialive*.com // On 11/16/2011 06:33 AM, michel memeteau wrote: > Hi all , > > Just wondering if any Android icecast source is on the Way. > > the point is that I build a mobile Icecast source with 3G. My choices > are : > >
2009 Oct 01
1
inverse currying
Dear list, I have the following function, sugar = function(fun, id = "id"){ ff <- formals(fun) if( id %in% names(ff)) stop("id is part of args(fun)") formals(fun) <- c(unlist(ff), alist(id=)) fun } which one may use on a function foo, foo = function(x){ x } sugar(foo) # results in the extended closure, function (x, id) { x } Its limitation (other
2008 Jul 07
4
script.aculo.us slider - this and event handler - depending sliders
Hi, I successfully created depending sliders with prototype and slider.js. See the result here: http://www.soa-world.de/dev/slider/slider.html (here''s the code: http://pastebin.com/ma1e82eb) There is one problem with my code. What I do is I have a sliders class "function sliders()" inside I create the 5 sliders in a for loop and store them inside an array which is a member of
2010 Dec 06
2
Any android source client for icecast ?
I don't have an Android phone, but if I did, I would look for a VLC port, or a try a Java source client like JRoar. It would be interesting to find out if either of these work! - Leo On 6 December 2010 12:55, <un at dom.de> wrote: > Thomas B. Ruecker: >> Nobody said anything about this necessarily being a GUI, >> user-frienldy application, right? > > bare bone is
2017 May 05
3
A few suggestions and perspectives from a PhD student
Dear Sir or Madam, I am in 2nd year of my PhD in bioinformatics, after taking my Master?s in computer science, and have been using R heavily during my PhD. As such, I have put together a list of certain features in R that, in my opinion, would be beneficial to add, or could be improved. The first two are already implemented in packages, but given that it is implemented as user-defined operators,
2010 Jan 26
1
ordisymbol - changing symbols used in plotting factor levels
Hello, I'm trying plot points in an NMDS according to a factor with two levels: fig<-ordiplot(canod.sol, type="none",cex.axis=0.9,cex.lab=0.1,pty="m",tck=-0.01) ordisymbol(fig, y = hab, factor = "habitat", rainbow = T,col = env, legend = F) This gets me part of the way - It produces a plot with blue triangles for the first factor level and red circles
2009 Jun 25
0
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
On Thu, Jun 25, 2009 at 12:32 AM, ihusar<ihusar at fit.vutbr.cz> wrote: >                //now i need to create an instruction that represents a call to a intrinsic >                Function* FIntr = Intrinsic::getDeclaration(&M, Intrinsic::regread_i32); > >                // here it fails: void llvm::CallInst::init(llvm::Value*): >                //Assertion
2004 Aug 06
2
[OT] Online music database
Sorry this isn't really icecast related, but I'm looking for an online music database that will let me search by artist+track and retrieve the likely record label / music publisher that owns the copyright. I want to do this from within a script as well :) Hoping somebody might know of one off the top of their head... Cheers Leo <p><p><p>--- >8 ---- List archives:
2017 May 05
0
A few suggestions and perspectives from a PhD student
Regarding the anonymous-function-in-a-pipeline point one can already do this which does use brackets but even so it involves fewer characters than the example shown. Here { . * 2 } is basically a lambda whose argument is dot. Would this be sufficient? library(magrittr) 1.5 %>% { . * 2 } ## [1] 3 Regarding currying note that with magrittr Ista's code could be written as: 1:5
2017 May 08
3
A few suggestions and perspectives from a PhD student
Thanks for the answers, I?m aware of the ?.? option, just wanted to give a very simple example. But the lapply ??' parameter use has eluded me and thanks for enlightening me. What do you mean by messing up the call stack. As far as I understand it, piping should translate into same code as deep nesting. So then I only see a tiny downside for debugging here. No loss of time/space efficiency
2023 Nov 11
1
New syntax for positional-only function parameters?
6 ?????? 2023 ?. 22:54:24 GMT+03:00, mikkmart via R-devel <r-devel at r-project.org> ?????: >The pattern of functions accepting other functions as inputs and >passing additional ... arguments to them is prevalent throughout >the R ecosystem. Currently, however, all such functions must one >way or another tackle the problem of inadvertently passing arguments >meant to go to
2006 Oct 02
2
How do I list in YP? icecast2 ices0
I thought the YP code was going to be fixed to use less resources so it could be used with other stream formats. It seems to be taking a long time. As it is now, Icecast2 is not a good solution for those wanting to be on a popular directory. I am forced to recommend using Shoutcast to my clients so they can get onto a popular directory. I would prefer to recommend Icecast2. Ross Levis.
2002 Aug 01
0
User directory shares with Samba, Winbind, and Win2k domain - Partial solution
Mats, After a couple hours of reading and trial and error, this is what I got to work for me. [username] path = /home/USERS/username writable = yes comment = User File Storage valid users = DOMIAN+username create mode = 0664 directory mode = 0775 browseable = no Then on the directory structure it self I had to run a 'chown -R
2004 Aug 06
0
[OT] Online music database
I'd search freshmeat/sourceforge/cpan before doing anything... there might already be a library or package for general-purpose web-grepping.. If not you can probably use a "HTML to ascii" converter (or some Perl/awk tag strip construct) which will reduce fluff in the pages. I find it easier to throw away data I know I _don't_ want first (though, if I knew regular expressions
2009 Jun 24
3
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
Hi everyone, I am trying to write a pass, that finds some instructions and replaces them with my intrinsics, but I am having problem understanding, how this should be done. Let's say I have this instruction: %tmp14 = load i32* getelementptr ([32 x i32]* @gpregs, i32 0, i64 28) and i need to read the load's operands and replace it by let's say: %tmp14 = call i32
2004 Aug 06
1
[OT] Online music database
(Already noting the posts that say this is not available) Are you willing to deal with "non authoritative" answers in your query? If so, you can write some scripts that talk CGI to a commercial music vendor. I use a (no longer available) MP3 tagger called "MP3 Internet Renamer". It would go out and request a web page from the "All Music Guide" (
2011 Nov 16
0
Any android source client for icecast ?
He's asking for a SOURCE client, not a _listener_ client. I don't think such a thing exists at the moment. TBR -- Sent from my Nokia N950 On 16.11.2011 19:44 TheDarkener wrote: Try "XIIALive Lite", it works perfectly for my Icecast/Vorbis stream. The 'lite' version is free and works fine (ad supported). *xiialive*.com // On 11/16/2011 06:33 AM, michel memeteau