Advertisement
mason1920

545cedaa9943f7fe7b000048 case generation

Aug 6th, 2023
2,036
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.11 KB | Source Code | 0 0
  1. BEGIN { FS = "" }
  2. {
  3.     for (i = 1; i <= NF; i++)
  4.         printf "case '%c': contents[%d] = true; break;\n", $i, i - 1
  5. }
  6.  
Tags: codewars
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement