Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow pass in a parameter? #6

Open
szguoxz opened this issue Oct 21, 2023 · 1 comment
Open

allow pass in a parameter? #6

szguoxz opened this issue Oct 21, 2023 · 1 comment

Comments

@szguoxz
Copy link

szguoxz commented Oct 21, 2023

for example, I need to use akin to make the following code simpler, but some how can't get it to work. If akin can accept a parameter, it will be great!

impltableinfo!(2, T1, Q1, T2, Q2);
impltableinfo!(3, T1, Q1, T2, Q2, T3, Q3);
impltableinfo!(4, T1, Q1, T2, Q2, T3, Q3, T4, Q4);
impltableinfo!(5, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5);
impltableinfo!(6, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6);
impltableinfo!(7, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7);
impltableinfo!(8, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8);
impltableinfo!(9, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9);
impltableinfo!(10, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA);
impltableinfo!(11, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB);
impltableinfo!(12, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC);
impltableinfo!(13, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD);
impltableinfo!(14, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE);
impltableinfo!(15, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF);
impltableinfo!(16, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG);
impltableinfo!(17, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH);
impltableinfo!(18, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI);
impltableinfo!(19, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ);
impltableinfo!(20, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL);
impltableinfo!(21, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM);
impltableinfo!(22, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN);
impltableinfo!(23, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO);
impltableinfo!(24, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP);
impltableinfo!(25, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ);
impltableinfo!(26, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR);
impltableinfo!(27, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS);
impltableinfo!(28, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS, TT, QT);
impltableinfo!(29, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS, TT, QT, TU, QU);
impltableinfo!(30, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS, TT, QT, TU, QU, TV, QV);
impltableinfo!(31, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS, TT, QT, TU, QU, TV, QV, TW, QW);
impltableinfo!(32, T1, Q1, T2, Q2, T3, Q3, T4, Q4, T5, Q5, T6, Q6, T7, Q7, T8, Q8, T9, Q9, TA, QA, TB, QB, TC, QC, TD, QD, TE, QE, TF, QF, TG, QG, TH, QH, TI, QI, TJ, QJ, TL, QL, TM, QM, TN, QN, TO, QO, TP, QP, TQ, QQ, TR, QR, TS, QS, TT, QT, TU, QU, TV, QV, TW, QW, TX, QX);

@LyonSyonII
Copy link
Owner

What do you mean by a parameter?
At the moment Akin supports ranges, which could work for the repetitions with numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants