MAPABLEVERYEXPR(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– MAPABLEVERYEXPR πŸ’–

okay bestie, gather round, we're doing mapableveryexpr from the ABL FUNCTIONS corner of the manual, and honestly? she's a little workhorse. sit with me 🫢

✨ NAME ✨

mapableveryexpr β€” applies a function to all operands. that's it, that's the whole vibe, she scans and she applies πŸ’…


🌸 ORIGIN 🌸

This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. oui oui, trΓ¨s iconique πŸ‡«πŸ‡·


πŸŽ€ SYNOPSIS πŸŽ€

#include "abl101.h"
int mapableveryexpr( Function, Expr )
  void      (βˆ—Function)();
  chain_list βˆ—Expr;

look at her, so small, so powerful ⭐


πŸ¦‹ PARAMETERS πŸ¦‹

  • Function β€” Function name to apply to all operands. yes bestie, you're passing in a function, it's giving higher-order, it's giving main character energy πŸ‘‘
  • Expr β€” Expression to scan. the thing we're going through, top to bottom, no skips πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

mapableveryexpr applies Function to all operands of Expr. that's the tea. every single operand gets the function treatment, no one is left out, everybody eats πŸ”₯


🌈 RETURN VALUE 🌈

mapableveryexpr returns the value of a logical AND applied on the results of the application of the function on the arguments of the expression Expr.

so basically: everything has to come back truthy for the whole thing to be truthy. one hater in the group chat and the AND says no πŸ’€


⭐ EXAMPLE ⭐

#include "abl101.h"
   int MapFunction( MapExpr )
     chain_list βˆ—MapExpr;
   {
     if ( ABL_ATOM( MapExpr ) )
     {
       if ( ABL_ATOM_VALUE( MapExpr ) == getablatomzero() )
       {
         return( 1 );
       }
     }
     return( 0 );
   }
   ...
   chain_list βˆ—Expr;
   ...
   mapableveryexpr( MapFunction, Expr );
   ...

copy it exactly, don't freestyle the syntax bestie, the compiler will clock you 😭


🌸 SEE ALSO 🌸

(the whole friend group, go read them too, iykyk 🫢)


🧚 BUG REPORT 🧚

This tool is under development at the ASIM department of the LIP6 laboratory.

We need your feedback to improve documentation and tools.

fr fr, if something's weird, tell them. documentation glow-ups only happen when people speak up πŸ’Œ

and that's the whole page, bestie ✨ this one came from ASIM/LIP6, dated October 1, 1997, and the manual tag on the bottom was MAPABLEVERYEXPR(3) β€” like, she's been slaying since the nineties and she's still serving πŸ‘‘πŸ’–