D 2020-02-14T21:49:08.052 J icomment Currently\sthere\sare\sthree\sfunctions\s``,\s``\sand\s``\sand\syou\spass\sthem\sthe\squery-generating\sfunction\sitself\s(`articles`\sor\s`articles+notes`),\srather\sthan\spassing\san\sexpression\s_using_\sthose\sfunctions\swhich\sproduces\sthe\squery.\r\n\r\nThe\sonly\sreason\swe\sneed\sthree\sseparate\sfunctions\sis\sthe\sdifferent\streatment\sneeded\sfor\s``.\sThe\smarkup\sstored\sin\sthe\slisting_short\scolumn\sis\scontained\sin\san\s`
  • `,\sso\s``\sneeds\sto\sreturn\sthe\sconcatenated\sHTML\swrapped\sin\sa\s`
      `\stag.\sIf\sthe\smarkup\swere\schanged\sso\sthat\sno\ssuch\sspecial\streatment\swere\sneeded,\swe\scould\sswitch\sto\sa\ssingle\slisting\sfunction,\swith\susage\slike\sthis:\r\n\r\n```racket\r\n◊(collate\s(articles+notes\s'short))\r\n``` J login joel J mimetype text/x-markdown J severity Minor J status Open J title Refactor\slisting/query\sfunctions J type Aesthetic\sImprovement K 8ad560204f7a5c94691355d4572fa2dca544d849 U joel Z 8dc2d7a717b1c836563e5bd8202ffef5