Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7794375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:45:24+00:00 2026-06-01T22:45:24+00:00

A tuple is piped by: let a = (1,2) let f a b =

  • 0

A tuple is piped by:

let a = (1,2)
let f a b = ()
a ||> f

A triple is piped by:

let a = (1,2,3)
let f a b c = ()
a |||> f

But this doesn’t work for a quadruple:

let a = (1,2,3,4)
let f a b c d= ()
a ||||> f

How do you pipe a quadruple to a function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:45:27+00:00Added an answer on June 1, 2026 at 10:45 pm

    The others are defined by F#, for a 4-tuple you need to define it yourself:

    let a = (1,2,3,4)
    let f a b c d = printfn "got %A %A %A %A" a b c d
    
    let inline (||||>) (a,b,c,d) f = f a b c d
    
    a ||||> f
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to pass tuple to this function but i am getting error mytuple
boost::tuple has a get() member function used like this: tuple<int, string, string> t(5, foo,
This is a tuple I have taken let person = (Prathap Reddy SV, Male,
Given the tuple: let tuple = (true, 1) How do i use this tuple
My tuple looks something like this(for a particular set of generated value) tTrains =
I can assign a tuple as follows: var (min, max) = (1, 2) But
Consider a tuple v = (a,b,c) and a generator function generate(x) which receives an
tuple in boost and TR1/c++0x provides a convenient (for the writer of the function)
I have seen the Tuple introduced in .Net 4 but I am not able
Suppose I have a tuple in a list like this: >>> t = [(asdf,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.