MAPABLEXPR(3)
β¨ MAPABLEXPR β¨
okay bestie, welcome to mapablexpr β a lil function from the ABL FUNCTIONS manual (section 3, the library one, iykyk) and honestly? she's giving "glow-up for your expression tree." π
πΈ NAME πΈ
mapablexpr β applies a function to all operands. yes literally that's the whole vibe: you bring the function, she brings the operands, everyone eats. π
π ORIGIN π
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. π«π·β¨ iconic institution behavior, no cap.
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
π¦ SYNOPSIS π¦
#include "abl101.h"
void mapablexpr( Function, Expr )
void (βFunction)();
chain_list βExpr;
π PARAMETERS π
Functionβ the function name you wanna apply to all the operands. she's the main character here, fr fr.Exprβ the expression you're scanning. the little world she's about to visit. π
π DESCRIPTION π
mapablexpr applies Function to all operands of Expr.
that's it. that's the whole thing. she takes your function and she walks the whole expression, hitting every operand on the way. lowkey elegant, highkey useful. π
β¨ RETURN VALUE β¨
mapablexpr returns nothing. not a value, not a vibe check, not even a lil wave. void. periodt. π
π EXAMPLE π
ok so here's the whole thing, copied exactly, don't come for me:
#include "abl101.h"
void MapFunction( MapExpr )
chain_list βMapExpr;
{
if ( ABL_ATOM( MapExpr ) )
{
printf( stdout, "%s", ABL_ATOM_VALUE( MapExpr ) );
}
else
{
mapablexpr( MapFunction, MapExpr );
}
}
...
chain_list βExpr;
...
mapablexpr( MapFunction, Expr );
...
see how MapFunction checks if it's an atom with ABL_ATOM, prints ABL_ATOM_VALUE when it is, and otherwise calls mapablexpr( MapFunction, MapExpr ) right back on itself? recursive queen. she ate and left no crumbs. π₯
π§ SEE ALSO π§
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools. π«Ά so like, pls tell them if something's weird, they're literally asking. bestie to bestie.
π‘ tiny reminder: this whole thing belongs to the ABL FUNCTIONS manual, section 3 β so if you're lost in the docs, that's your map. πΊοΈ
ASIM/LIP6 β October 1, 1997 β MAPABLEXPR(3) π
and that's the page, bestie! written by ASIM/LIP6 back on October 1, 1997, filed under MAPABLEXPR(3). mwah, go map some expressions. πβ¨π¦
π¦ where this page comes from
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms