barter

Dynamically tries to barter a range based lambda.

  1. auto barter(A index, B elem)
  2. auto barter(A elem)
  3. auto barter(A index, B elem)
    barter
    (
    A
    B
    _ = void
    )
    (,)

Parameters

F

The lambda being fulfilled.

index A

The current index in the range, by ref.

elem B

The current element in the range, by ref.

Remarks: - This will barter any kind of lambda, but throws if there are more than 3 arguments. - Has no explicit parameter checking, just tries to match a call. - Will allow for fulfilling normal functions, but has no optimizations and is simply for ease of use.

Meta